.gitignore Generator
Pick technologies and environments to combine templates into a single .gitignore with duplicate lines removed.
How to Use
- STEP 1
- Check the templates you need (multiple selection supported)
- STEP 2
- The combined .gitignore is generated automatically below
- STEP 3
- Optionally remove lines you don't need for your project
- STEP 4
- Copy or download as .gitignore and place it at the repo root
- STEP 5
- If you already have one, merge changes instead of overwriting
Notes
- Templates are stored locally; generation runs entirely in your browser.
- Please review and edit lines to fit your project as needed.
Tips
macOS and editor (VSCode/JetBrains) ignores help across most projects.
For Node.js + Next.js, ignore .next/ and out/ to keep build outputs out of git.
CI artifacts like dist/build/coverage are generally safe to ignore.
Never commit secrets: keep .env and similar out of version control.
In monorepos, define common ignores (e.g., node_modules/) at the root.
Combine language templates with IDE/OS templates to reduce gaps.
After generation, tidy extra blank lines for readability.
For teams, propose .gitignore updates via PR to align expectations.
FAQ
QUESTION 1
Is it safe?
Yes. All processing happens locally in your browser and nothing is stored or uploaded.
QUESTION 2
Can I add more templates?
Currently fixed. Request additions and we'll include them. You can also edit lines after generation.
QUESTION 3
Will it conflict with my existing .gitignore?
Prefer merging changes. The tool removes duplicate lines where possible to reduce conflicts.
QUESTION 4
How about monorepos?
Keep a common .gitignore at the root; add per-package .gitignore only when necessary.
QUESTION 5
Dev vs prod environments?
.gitignore isn't environment-specific; keep ignores shared and manage env differences via .env.* etc.
QUESTION 6
I accidentally ignored a needed file
Remove the line from .gitignore; if already ignored by Git, use `git add -f` to force add.
QUESTION 7
Best selection order?
Start with OS/editor, then language, then framework/hosting to minimize gaps.
QUESTION 8
Should .gitignore be shared in the repo?
Yes. Commit it so the whole team aligns on the same rules.