.gitignore Generator
Pick your stack and get a sensible .gitignore covering dependency folders, build output, env files, logs and OS/editor cruft. The general block (DS_Store, Thumbs.db, logs, editor folders) is always included and lines are deduplicated.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
What the generated file contains
Choose a stack and the tool prints a .gitignore body: the ignore patterns for that stack plus a general block with .DS_Store, Thumbs.db, *.log and editor folders. Lines are deduplicated in order, so a pattern shared by the stack and the general block appears once.
Starting a repository
Use it when you are initialising a project and would rather not hunt through another repo for the right lines, or when a teammate keeps committing an .idea folder. Pick Node.js for a JavaScript app, Python for a virtualenv-based service, and so on.
What each stack covers
Node brings node_modules, dist, coverage and .env with an exception for .env.example. Python brings __pycache__, .venv and the type-checker caches. Rust ignores /target, Go ignores /bin and vendor, Java Maven ignores target and class files. macOS, Windows, Linux, JetBrains and VS Code entries cover OS and editor cruft, and General only emits the shared block on its own.
It cannot untrack a committed file
The output is a suggestion, not a migration. .gitignore only affects untracked files, so anything committed earlier keeps appearing in git status until it is removed from the index.
Built from constants in the page
The pattern lists are constants shipped with the tool; no path, project name or repository detail is transmitted, and the generator runs without a network connection.
Questions
Does it untrack files already committed?
No. .gitignore only affects untracked files. Run git rm -r --cached . once (then commit) to stop tracking files that were committed before the rule existed.
Why does every stack include .DS_Store and Thumbs.db?
The general block with OS, log and editor patterns is appended to every stack except the General only choice, so the same cruft is covered whichever stack you pick.
Can I combine two stacks in one file?
No. The generator emits one stack per run. Generate each stack you need and paste the lines into a single .gitignore; repeated lines inside one run are already deduplicated for you.
Related tools
See category- .editorconfig Generator
- robots.txt Generator
- :nth-child An+B Evaluator
- Accept-Language Header Analyzer
.editorconfig Generator
Generate an .editorconfig with your indentation, line-ending and charset settings.
robots.txt Generator
Generate a robots.txt: allow all, block all, block AI crawlers, or custom rules.
:nth-child An+B Evaluator
Parse CSS An+B (:nth-child, :nth-of-type) microsyntax, validate it, and list which child indices it matches.
Accept-Language Header Analyzer
Analyze and build Accept-Language values