Command-line tool
git-ignore
brew/git-ignore
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
List, fetch and generate .gitignore templates
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
scoop install gitignore scoop install psutils
macOS
brew install git-ignore
Linux
brew install git-ignore
Show the content of all global and local `.gitignore` files
git ignore
Ignore file(s) privately, updating `.git/info/exclude` file
git ignore file_pattern -p
Ignore file(s) locally, updating local `.gitignore` file
git ignore file_pattern
Related command-line tools
- gitignore-template-generator
A binary crate to generate templates for .gitignore files - ignoreit
Quickly load .gitignore templates - gibo
Access GitHub's .gitignore boilerplates - gitnr
Create `.gitignore` using templates from TopTal, GitHub or your own collection - gig
Generate .gitignore files from your terminal (mostly) offline! - cloc
Statistics utility to count lines of code programming-language cloc count-lines - dbxignore
dbxignore (Windows package; no description in the winget index) sync cli gitignore dropbox ignore - fastmod
Fast, partial replacement for codemod (find/replace tool for programmers)
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents