.gitignore Generator
100% LocalGenerate .gitignore files for any language, framework, OS, or editor.
# ===== Node ===== # Node.js node_modules/ npm-debug.log* yarn-debug.log* yarn-error.log* pnpm-debug.log* .npm .pnp.* .yarn/cache .yarn/unplugged .yarn/build-state.yml .yarn/install-state.gz .pnp.cjs .pnp.loader.mjs dist/ build/ .cache/ .parcel-cache/ .next/ .nuxt/ .output/ .vite/ # ===== macOS ===== # macOS .DS_Store .AppleDouble .LSOverride ._* .Spotlight-V100 .Trashes .DocumentRevisions-V100 .fseventsd .TemporaryItems .VolumeIcon.icns .com.apple.timemachine.donotpresent # ===== VS Code ===== # VS Code .vscode/* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json !.vscode/*.code-snippets .history/ *.vsix # ===== Env files ===== # Environment & Secrets .env .env.* !.env.example !.env.sample *.pem *.key *.p12 *.pfx secrets/ credentials/
Select your language, framework, and OS. The .gitignore file builds from maintained template patterns.
Learn More
What is .gitignore Generator?
Frequently Asked Questions
Technical Deep Dive
.gitignore Generator
Select from 19 templates across languages (Node, Python, Go, Java, Rust, PHP, Ruby, Swift), operating systems (macOS, Windows, Linux), editors (VS Code, JetBrains, Vim), and DevOps tools (Docker, Terraform). Combine multiple templates and download a ready-to-use .gitignore file.
Stack-aware templates
Combine language, framework, OS, and editor templates (Node, Python, macOS, JetBrains) into one merged, de-duplicated file.
Community template set
Rules track the widely used github/gitignore templates so you get the same coverage as gitignore.io.
Copy or download
Grab the finished .gitignore with no attribution comment or tracking added.
01 Stack Exclusion Matrix
| Runtime / Stack | Standard Exclusions | Why Ignore? |
|---|---|---|
| Node.js | node_modules/ | External dependencies |
| Python | __pycache__/ | Compiled bytecode |
| Go | *.exe, /bin | Binary artifacts |
| Rust | target/ | Build intermediate files |
| macOS | .DS_Store | OS Desktop metadata |
02 Untracking Workflow
.env) to your project's root .gitignore.
git rm --cached [file] to remove the item from the tracking index while keeping it on disk.