{"id":14235629,"url":"https://github.com/janniks/git-ignore","last_synced_at":"2025-03-19T21:31:00.471Z","repository":{"id":45483791,"uuid":"313990993","full_name":"janniks/git-ignore","owner":"janniks","description":"An interactive CLI to generate .gitignore files (written in Rust)","archived":false,"fork":false,"pushed_at":"2021-12-11T13:59:16.000Z","size":2921,"stargazers_count":33,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T15:21:20.853Z","etag":null,"topics":["git","ignore","ignore-files","ignore-list"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/janniks.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}},"created_at":"2020-11-18T16:22:12.000Z","updated_at":"2025-03-05T03:07:41.000Z","dependencies_parsed_at":"2022-07-18T23:32:34.361Z","dependency_job_id":null,"html_url":"https://github.com/janniks/git-ignore","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janniks%2Fgit-ignore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janniks%2Fgit-ignore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janniks%2Fgit-ignore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janniks%2Fgit-ignore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janniks","download_url":"https://codeload.github.com/janniks/git-ignore/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244507891,"owners_count":20463694,"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":["git","ignore","ignore-files","ignore-list"],"created_at":"2024-08-20T21:02:10.343Z","updated_at":"2025-03-19T21:31:00.000Z","avatar_url":"https://github.com/janniks.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"\u003ch1 align=\"center\" style=\"font-weight: bold !important\"\u003egit-ignore 🙈\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003egit-ignore\u003c/strong\u003e lets you generate \u003ccode\u003e.gitignore\u003c/code\u003e files for your repositories right from the terminal\n\u003c/p\u003e\n\n\u003ch3 align=\"center\"\u003e\n  \u003ca href=\"#installation-\"\u003eInstallation\u003c/a\u003e\n  \u003cspan\u003e · \u003c/span\u003e\n  \u003ca href=\"#usage-\"\u003eUsage\u003c/a\u003e\n  \u003cspan\u003e · \u003c/span\u003e\n  \u003ca href=\"#why-%EF%B8%8F\"\u003eWhy?\u003c/a\u003e\n  \u003cspan\u003e · \u003c/span\u003e\n  \u003ca href=\"#how-\"\u003eHow?\u003c/a\u003e\n  \u003cspan\u003e · \u003c/span\u003e\n  \u003ca href=\"#credits-\"\u003eCredits\u003c/a\u003e\n  \u003cspan\u003e · \u003c/span\u003e\n  \u003ca href=\"#license-%EF%B8%8F\"\u003eLicense\u003c/a\u003e\n\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Example usage\" src=\"docs/images/example.gif\" style=\"border-radius:3px\"\u003e\n\u003c/p\u003e\n\n## Installation 🛠\n\n### macOS (via [Homebrew](https://brew.sh))\n\n**git-ignore** is released and maintained via [Homebrew](https://brew.sh), which needs to be installed first.\n\nRun the following commands to install:\n\n```\nbrew tap janniks/git-ignore\nbrew install git-ignore\n```\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ci\u003eExpand for uninstall instructions\u003c/i\u003e\u003c/summary\u003e\n\u003cp\u003e\u003cpre\u003ebrew untap janniks/git-ignore\nbrew uninstall git-ignore\u003c/pre\u003e\u003c/p\u003e\n\u003c/details\u003e\n\n### Build from source (via Cargo)\n\n\u003e Tested on: _macOS, Archlinux_\n\n1. Install [Rust](https://www.rust-lang.org) and Cargo (e.g. via [rustup](https://rustup.rs)).\n2. Clone the repository via git and enter the project folder:\n\n```\ngit clone https://github.com/janniks/git-ignore.git\ncd git-ignore\n```\n\n3. Run Cargo's `build` command:\n\n```\ncargo build\n```\n\n\u003e The binary is generated into the `target/debug` directory.\n\u003e If you want to run the command globally, you need to move it to a directory covered by your PATH environment variable (e.g. on Unix systems to the `/usr/local/bin` directory).\n\u003e\n\u003e If `~/.cargo/bin/` is already in your environment's PATH, your can run `cargo install --path .` to build and move the executable there (and skip step 4).\n\n4. Move the executable:\n\n```\nmv target/debug/git-ignore /usr/local/bin/git-ignore\n```\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ci\u003eExpand for uninstall instructions\u003c/i\u003e\u003c/summary\u003e\n\u003cp\u003eSimply delete the executable from wherever it was moved:\u003cpre\u003erf /usr/local/bin/git-ignore\u003c/pre\u003e\u003cpre\u003erf ~/.cargo/bin/git-ignore\u003c/pre\u003e\u003cpre\u003ecargo uninstall git-ignore\u003c/pre\u003e\u003c/p\u003e\n\u003c/details\u003e\n\n## Usage 🚀\n\n**git-ignore** is used to generate new `.gitignore` files or append content to existing ones.\n\nFrom now on, you simply run `git ignore` to launch the interactive CLI, anytime you want to setup or change a `.gitignore` file.\n\n## Why? ⚡️\n\nEvery time I start a new project/repository, I need a `.gitignore` file. And every time I missed something that had to be added later—often after unstashing/reverting, because of those pesky `git add -all` I love so dearly. Then came [gitignore.io](https://gitignore.io) and made my life a lot easier. Sadly, not too long ago, Toptal decided to rebrand the site a bit (not too much, but we developers are purists). So, the next time I spun up a new repository, I started procrastinating. I no longer wanted to have to leave the terminal to setup a .gitignore file. And thus **git-ignore** was born. You can now utilize battle-tested ignore templates right from your terminal.\n\n## How? 💭\n\ngit-ignore is added as an external executable for git. Basically, if there are executables in your PATH that match `git-\u003ccommand\u003e` then they will become available through git as `git \u003ccommand\u003e`.\n\ngit-ignore uses GitHub and Toptal APIs to fetch the ignore templates.\n\n## Credits 🌎\n\n- git-ignore uses templates from the [Toptal](https://www.toptal.com) [gitignore.io](https://gitignore.io) project.\n\n## License ⚖️\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanniks%2Fgit-ignore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanniks%2Fgit-ignore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanniks%2Fgit-ignore/lists"}