Free · Open Source
A free command-line tool for managing .gitignore files.
Templates from GitHub and Toptal, local overrides for project-specific patterns, and an MCP server mode that lets AI coding assistants manage ignore rules directly. Cross-platform binaries for macOS, Linux, and Windows.
curl -L https://github.com/convergent-systems-co/gitignore/releases/latest/download/gitignore-darwin-arm64.tar.gz | tar xz
sudo mv gitignore /usr/local/bin/
curl -L https://github.com/convergent-systems-co/gitignore/releases/latest/download/gitignore-darwin-amd64.tar.gz | tar xz
sudo mv gitignore /usr/local/bin/
curl -L https://github.com/convergent-systems-co/gitignore/releases/latest/download/gitignore-linux-amd64.tar.gz | tar xz
sudo mv gitignore /usr/local/bin/
Download the .zip from the releases page and extract gitignore.exe to a directory in your PATH.
Or install from source with Go:
go install github.com/convergent-systems-co/gitignore/src/cmd/gitignore@latest
gitignore list
Shows templates in source/name form: github/go, github/global/macos, toptal/rust, local/myproject.
gitignore search rust
gitignore add github/go github/global/macos
gitignore remove github/go
gitignore add-path "*.log" "build/"
~/.config/gitignore/local/ take precedence over upstream sources..gitignore directly via the Model Context Protocol.Run the tool as an MCP server so AI coding assistants can manage your .gitignore automatically:
gitignore mcp serve
Configure your MCP-aware client (Claude Desktop, GitHub Copilot, etc.) to launch this command. The assistant gains tools for listing, searching, adding, and removing templates without round-tripping through your terminal.
Complete usage guide, configuration reference, and contribution guidelines live in the repository: