{"id":23752850,"url":"https://github.com/knutwalker/gh-ignore","last_synced_at":"2026-03-14T21:30:15.579Z","repository":{"id":268796379,"uuid":"905497510","full_name":"knutwalker/gh-ignore","owner":"knutwalker","description":"`gh` extension that creates a .gitignore file from templates from github.com/github/gitignore","archived":false,"fork":false,"pushed_at":"2025-01-22T21:15:15.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-16T03:41:49.710Z","etag":null,"topics":["gh-extension","gitignore"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knutwalker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-19T00:26:34.000Z","updated_at":"2025-01-22T21:15:18.000Z","dependencies_parsed_at":"2024-12-19T03:15:23.914Z","dependency_job_id":null,"html_url":"https://github.com/knutwalker/gh-ignore","commit_stats":null,"previous_names":["knutwalker/gh-ignore"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knutwalker%2Fgh-ignore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knutwalker%2Fgh-ignore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knutwalker%2Fgh-ignore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knutwalker%2Fgh-ignore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knutwalker","download_url":"https://codeload.github.com/knutwalker/gh-ignore/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239921843,"owners_count":19718844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gh-extension","gitignore"],"created_at":"2024-12-31T17:56:26.489Z","updated_at":"2026-03-14T21:30:15.509Z","avatar_url":"https://github.com/knutwalker.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gh-ignore\n\n`gh` extension that creates a .gitignore file from templates from github.com/github/gitignore\n\n## Installation\n\nPrerequisite: [fzf](https://github.com/junegunn/fzf) needs to be installed and in the `$PATH`.\n\n```\ngh extension install knutwalker/gh-ignore\n```\n\n\n## Usage\n\n\nDefault usage,\n\n```\ngh ignore\n```\n\nThis will create a new `.gitignore` file with the concatenated content of the selected base files.\nThe selection of files is done by `fzf`, which run in multi-select mode.\nIn order to select multiple files, select each of them with \u003ckbd\u003eTab\u003c/kbd\u003e, then commit your total selection with \u003ckbd\u003eReturn\u003c/kbd\u003e\n\n## Workflow\n\n### Source Repository\n\nOn the first run, the repository https://github.com/github/gitignore will be cloned in a cache directory.\nThe default cache location is printed in the output of `gh ignore --help`\n\nThat repository is updated (`git pull`) if the last update was older than a day ago.\n\nOther than the git operations to update the repository, no network requests are done.\n\n### Output File\n\nBy default, the result is written to `.gitignore`.\nThe output can be set with `-o` or `--output`, accepting `-` to mean stdout.\nThe output file will always be truncated and overwritten if it already exists.\n\nTypically, you would set up the .gitignore file once, at the start of a new repo, and then manually update it over the lifetime of the repo.\n\n\n## Alternatives\n\nThere are a number of .gitignore template tools out there, they differ in:\n\n- Using the [GitHub REST API](https://docs.github.com/en/rest/gitignore/gitignore) on every call instead of a cached repository\n- Using a third party source instead of GitHub\n- Being a standalone tools instead of a `gh` plugin\n- Being a different distribution all together, such as a website\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknutwalker%2Fgh-ignore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknutwalker%2Fgh-ignore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknutwalker%2Fgh-ignore/lists"}