What this tool does
Gitignore Generator composes .gitignore files from language, framework, editor, OS, and custom rule templates.
Compose a .gitignore from 25+ language, framework, IDE, and OS templates with search, presets, and custom rules.
Gitignore Generator composes .gitignore files from language, framework, editor, OS, and custom rule templates.
It helps developers avoid committing build artifacts, secrets, OS junk, and IDE metadata.
Select templates or a stack preset; the browser merges unique rules and optional section comments.
Pick your primary language/runtime first, then OS and editor, then add project-specific custom rules.
If a file is already tracked, untrack it with git rm --cached before relying on .gitignore.
Template generation happens locally in your browser.
.gitignore cannot scrub secrets already committed to history.
Ignoring only affects untracked files. Remove cached tracked files first.
Yes — enable global-style comments and put the file at the path configured by core.excludesFile.
Select Node, VS Code, macOS, and env templates so a new repo ignores modules, IDE junk, and secrets from day one.
Select Node, Astro/Next, VS Code, macOS, and env templates, then add workspace-specific dist folders.
Combine Python, Jupyter, pytest, and macOS templates for a data-science repo.
Use Go/Rust/Java plus Docker and JetBrains templates for backend services.