.gitignore File Generator — Presets, Custom Rules, Dedup
Generate .gitignore files for any stack — instantly, offline, free
Start from a preset (Full-Stack Web, Next.js App, Python ML, DevOps) or build your own combination. Smart deduplication removes duplicate patterns automatically.
# ============================================================ # Generated: CalcNation .gitignore Generator · 2026-03-14 # Stacks : Windows, macOS, VS Code, Node.js, React, .env Files, Log Files, Secrets # Format : .gitignore # ============================================================ # ──────────────────────────────────────────────────────────── # OS # ──────────────────────────────────────────────────────────── # 🪟 Windows Thumbs.db ehthumbs.db Desktop.ini $RECYCLE.BIN/ *.cab *.msi *.msm *.msp *.lnk # 🍎 macOS .DS_Store .AppleDouble .LSOverride Icon .Spotlight-V100 .Trashes ._* .fseventsd # ──────────────────────────────────────────────────────────── # IDE # ──────────────────────────────────────────────────────────── # 💙 VS Code .vscode/* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json *.code-workspace .history/ # ──────────────────────────────────────────────────────────── # LANGUAGE # ──────────────────────────────────────────────────────────── # 💚 Node.js node_modules/ npm-debug.log* yarn-debug.log* yarn-error.log* .pnp.cjs .pnp.loader.mjs .yarn/cache dist/ build/ coverage/ # ──────────────────────────────────────────────────────────── # FRAMEWORK # ──────────────────────────────────────────────────────────── # ⚛️ React # React build output build/ .env.local .env.development.local .env.test.local .env.production.local # ──────────────────────────────────────────────────────────── # TOOLS # ──────────────────────────────────────────────────────────── # 🔐 .env Files .env .env.local .env.*.local .env.development .env.test .env.production !.env.example !.env.sample # 📋 Log Files logs/ *.log npm-debug.log* yarn-debug.log* yarn-error.log* pnpm-debug.log* lerna-debug.log* # 🔑 Secrets # Security — never commit these *.pem *.key *.p12 *.pfx *.cer *.crt id_rsa id_rsa.pub *.secret secrets.json secrets.yaml *.keystore
Frequently Asked Questions
What presets are available?
Full-Stack Web, Next.js App, Python/ML, Java Spring, Go App, Android Kotlin, Flutter, and DevOps/Infra. Each preset selects the most relevant stacks for that project type.
How does smart deduplication work?
When multiple stacks share the same pattern (e.g. both Node.js and React ignore build/), only one instance appears in the output. This keeps the file clean and readable.
Can I add a project name?
Yes — enter a project name in the input at the top of the settings panel. It appears as a comment in the output header: # Project: YourName.
Is the output suitable for team use?
Yes. The generated file is designed to be committed to your repository. All team members will share the same exclusion rules automatically.
How do I use Custom Rules?
Click "✏️ Custom rules" to expand the editor. Type any patterns (one per line). They are appended as a separate section at the end of the output file.