4.8(2,400 ratings)

Developer Tools

Git Ignore Generator

Generate perfect .gitignore files for any stack. 30+ templates for Node, Next.js, Python, Java, Go, mobile, OS, IDEs and more. Add custom rules and download instantly. Keep your repos clean.

Quick presets
2 selected
Node.jsNext.js
Additional patterns (one per line)
.gitignore Preview
# Node.js
# Dependencies
node_modules/
pnpm-lock.yaml
yarn.lock
package-lock.json
# Build
.next/
dist/
build/
out/
# Env
.env
.env.local
.env.*.local
# Next.js
# Vercel
.vercel
.env*.local

Combines curated templates with your custom rules. Deduplicates lines. Works offline.

Never Commit the Wrong Files Again

A good .gitignore is the first line of defense against accidentally checking in node_modules, build artifacts, IDE metadata, OS files, and secrets. This generator gives you battle-tested patterns for dozens of languages and frameworks plus an easy way to add your own project-specific rules.

How to Use

  • Click quick preset groups (Web, Mobile, Backend...) or search and toggle individual templates.
  • Add any extra patterns in the custom box (logs, local secrets, generated docs, etc).
  • Copy or download the merged, deduplicated .gitignore and place it in your repo root.
  • Re-run later when you add new tools/languages to the project — it will intelligently merge.

Pro Tips

  • Start with OS + Editor templates on every repo (macOS/Windows + VS Code or IntelliJ).
  • For monorepos, combine multiple backend/frontend templates and use path prefixes where needed.
  • After adding a .gitignore, run git rm -r --cached . then git add . to clean already-tracked junk (carefully).