← Developer Tools
🚫

.gitignore File Generator — Instant, Free, Online

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

💡

Pick any combination of stacks, preview the output live, and download your .gitignore file. 50+ stacks with smart deduplication and grouped sections.

⚡ 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?

A file that tells Git which files to exclude from tracking. Essential for every project.

Why use a generator?

Writing patterns by hand is error-prone. Generators use battle-tested, community-maintained pattern lists for every stack.

Can I customise the output?

Yes — use the Custom Rules editor at the bottom of the settings panel to append your own patterns.

Does it work for monorepos?

Yes — select all the stacks used across your monorepo. The smart dedup ensures no pattern appears twice.

How do I download the file?

Click "⬇ .gitignore" in the output panel header. The file downloads with the correct filename ready to drop in your project root.