Create .gitignore from GitHub/TopTal (gitignore.io) templates + your own patterns, all configured in Ignorefile
- Create an
Ignorefilein the project root with:
gitignore.io:
- Node
- macOS
github:
- VisualStudio
paths-ignore:
- "/.turbo"
- "/.nx"- Generate
.gitignore.
If you use Homebrew:
brew install acevif/tap/ignore
ignoreIf you use Nix, just run without installing:
nix run github:acevif/ignoreIgnorefile is a YAML configuration file placed alongside .gitignore.
It supports the following keys:
gitignore.io: Templates from gitignore.io (toptal/gitignore.io)github: Templates from GitHub's github/gitignore repositorypaths-ignore: Project-specific patterns (same syntax as.gitignore)
Note: Quote patterns containing special characters (e.g.,
!,.,/).
# Templates sourced from Toptal's gitignore.io
gitignore.io:
- Rust
- direnv
# Templates sourced from GitHub's repository
github:
- Python
- Node
# Project-specific rules
paths-ignore:
- "/.turbo"
- "/.nx"
- ".env"
# Ignore /src/auto-generated but track .env.example inside it
- "/src/auto-generated"
- "!/src/auto-generated/.env.example"Generate or update .gitignore from Ignorefile in the current directory:
ignore
# or explicitly
ignore updateShow help:
ignore help
ignore --help
ignore -hShow version:
ignore version
ignore --versionbrew install acevif/tap/ignoreInstall to your profile:
nix profile install github:acevif/ignoreUse in your devShell (flake input):
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
ignore.url = "github:acevif/ignore";
};outputs = { self, nixpkgs, ignore, ... }:
let
system = builtins.currentSystem;
pkgs = import nixpkgs { inherit system; };
in {
devShells.default = pkgs.mkShell {
packages = [ ignore.packages.${system}.default ];
};
};git clone https://github.com/acevif/ignore.git
cd ignore
cargo install --path rustSee CONTRIBUTING.md for development setup, guidelines, and how to contribute.
- Last updated: 2026-01-25
- Last reviewed: 2026-01-22
Date definitions
- Updated means: content changes that affect meaning (format-only changes do not count).
- Review means: a quick sanity check for consistency (not an exhaustive review).