.gitignore Generator – Node, Python, Java, Go & More
NEWGitignore generator: tick your languages, frameworks, OS and editors to get one merged, deduplicated .gitignore file. Free, instant, in your browser.
Runs 100% in your browser — your input is never uploaded or stored on our servers.
55 patterns · 1 duplicates removed
Generated .gitignore.gitignore
# === Node.js === # Dependencies node_modules/ .pnp .pnp.* .yarn/* !.yarn/patches !.yarn/plugins !.yarn/releases !.yarn/versions # Logs logs/ *.log npm-debug.log* yarn-debug.log* yarn-error.log* pnpm-debug.log* # Build output and caches dist/ build/ coverage/ .nyc_output/ .cache/ .eslintcache *.tsbuildinfo .npm/ # === Next.js === /.next/ /out/ next-env.d.ts .vercel/ # === Environment files (.env) === .env .env.* !.env.example !.env.sample .envrc # === macOS === .DS_Store .AppleDouble .LSOverride ._* .Spotlight-V100 .Trashes .fseventsd .DocumentRevisions-V100 .TemporaryItems # === Windows === Thumbs.db Thumbs.db:encryptable ehthumbs.db ehthumbs_vista.db Desktop.ini $RECYCLE.BIN/ *.lnk *.stackdump # === VS Code === .vscode/* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json *.code-workspace .history/
Quick Examples
Typical inputs and the results this tool produces.
Overview
A .gitignore file tells Git which files never belong in the repository: dependency folders, build output, caches, editor settings, OS clutter and local secrets. This gitignore generator builds that file from about 30 hand-written pattern sets covering languages, frameworks, mobile, infrastructure tools, operating systems and editors.
Pick everything your project uses and the patterns are merged into one file with a header per section. Patterns that appear in several sets (build/, *.log, *.tsbuildinfo…) are kept only once, and your own lines go into a Custom section at the end. Everything runs in your browser; copy the result or download it as .gitignore.
Why use this tool?
- One file for a polyglot repo instead of five pasted templates
- Duplicate patterns removed automatically
- Keeps .env secrets out of Git, keeps .env.example in
- Search stacks by name, tool or keyword
- Runs locally, nothing is uploaded
Features
Searchable templates
Filter Node, Python, Go, Rust, Unity, Terraform, JetBrains and more by typing a keyword.
Merged sections
Each selected stack becomes a "# === Name ===" section in a single file.
Deduplication
A pattern already listed in an earlier section is skipped, and the count is shown.
Custom lines
Add your own patterns and negations (!keep-me) in a Custom section.
Copy or download
Copy to the clipboard or save straight to a .gitignore file.
How to Use
Search and tick
Find your language, framework, OS and editor in the template list and tick them.
Add custom patterns
Type project-specific paths, one per line, in the Custom patterns box.
Choose options
Keep or drop explanatory comments and duplicate removal.
Copy or download
Press Copy or Download and put the file at the root of your repository.