← Developer Tools
🚫

.gitignore Generator — 50+ Stacks, Smart Dedup

Generate .gitignore files for any stack — instantly, offline, free

💡

Generate a clean, well-organised .gitignore file for any tech stack in seconds. Select from 50+ stacks across OS, IDE, Language, Framework, and Tools categories. Output is automatically deduplicated, grouped by category, and includes a project header. Switch between .gitignore, .dockerignore, and .npmignore formats — then copy or download instantly.

⚡ Quick Start:
STACKS8 selected
🔍
Selected stacks:
🪟 Windows 🍎 macOS 💙 VS Code 💚 Node.js ⚛️ React 🔐 .env Files 📋 Log Files 🔑 Secrets
GROUP BY CATEGORY
FORMAT
OUTPUT · .gitignore
# ============================================================
# 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

📄 110 lines·💾 3.1 KB·📦 8 stacks·🔧 .gitignore

Frequently Asked Questions

What is a .gitignore file?

A .gitignore file tells Git which files and folders to exclude from version control. Without it, build artifacts, secrets, node_modules, and OS junk files would get committed — bloating repos and creating security risks.

Can I combine multiple stacks?

Yes — select as many stacks as you need. The generator merges all patterns, automatically removes exact duplicates, and groups output by category (OS / IDE / Language / Framework / Tools) for readability.

What does the Diff view do?

When you add a new stack to an existing selection, the Diff toggle highlights the newly added patterns in green — making it easy to see exactly what changed without scanning the entire file.

What are the 8 presets?

Presets are curated stack combos: Full-Stack Web (Node + React + VS Code + macOS), Next.js App, Python/ML, Java Spring, Go App, Android Kotlin, Flutter, and DevOps/Infra. One click selects all stacks in the preset.

How does AI Explain work?

Click "🤖 Explain" to get a plain-English explanation of every section in your generated file — what each stack's patterns ignore and why those files should never be committed. Powered by Claude AI.