Why a .gitignore matters
A .gitignore tells Git which files to never track. Without one, you risk committing node_modules (hundreds of MB), __pycache__, compiled binaries, or — worst of all — .env files and API keys. Getting the basics right from day one saves real pain.
What to ignore
- Dependencies:
node_modules/,venv/,.venv/,vendor/. - Build output:
dist/,build/,target/,__pycache__/. - Secrets:
.env,*.pem,*.key— never commit these. - OS junk:
.DS_Store,Thumbs.db.
Tip: once a file is already tracked, adding it to .gitignore won't untrack it — run git rm --cached <file> first.
Edge cases and hard limits
The page ships a TEMPLATES object keyed by ecosystem — Node, Python, Go, Java and the rest — where each entry is the literal block of patterns that belongs in a .gitignore for that stack. Ticking a stack appends its lines in order, de-duplicating exact repeats, and the note area explains anything non-obvious such as why .env is listed separately from .env.local. The output is plain text you copy, not a file the page writes for you.
Formats, sizes and other limits
These are hand-maintained lists, not the canonical templates from GitHub, so an ecosystem that changed its build layout since the list was written may need an extra line or two. Order matters in .gitignore — a later negation can re-include a path an earlier rule excluded — and the generator does not reason about that interaction. It also does not know your repository: a pattern that is correct for a library can be wrong for an app that commits its build output on purpose.
Privacy: processed in your browser
The generator knows nothing about your project: it concatenates the patterns you tick from lists that shipped with the page, so no repository content is read or transmitted.
Frequently asked questions
Are these the official GitHub templates?
No. They are curated lists covering the common patterns for each stack, written to be readable rather than exhaustive. Compare with the official template if a build tool has changed.
Why is my ignored file still tracked?
Because .gitignore only affects untracked files. A path already committed keeps being tracked until you remove it from the index.
Can I combine several stacks?
Yes, that is the point — tick each one and the blocks are concatenated. Watch for duplicate patterns where two stacks overlap.