Skip to content
uxTools
Developer

.gitignore Generator

Pick the stacks your project uses, optionally add common defaults, and copy or download a clean .gitignore. Deduped across stacks, sortable, with optional inline comments and a .dockerignore variant.

Stacks selected

6

Click a chip to toggle.

Rules

46

Unique patterns across selected stacks.

Lines

84

Total lines in the rendered file.

Pick your stacks

Search or expand a category, then click any chip. Selections persist locally.

.gitignore preview

Sections are separated by `# === Name ===` headers. Duplicates are removed.

46 rules
# .gitignore
# Generated 2026-06-01 by uxTools — https://uxtools.dev/tools/gitignore-generator
# Edit freely; this is just a starting point.

# === Node.js ===
# Installed packages — always regenerated from lockfile
node_modules/
# Per-run npm crash logs
npm-debug.log*
# Per-run yarn crash logs
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Local pnpm content-addressed cache
.pnpm-store/
# Yarn Berry cache — keep .yarn/releases and .yarn/plugins
.yarn/cache
.yarn/install-state.gz
# npm's local cache when NPM_CONFIG_CACHE is repo-relative
.npm/
# Compiled output — regenerated by your build step
dist/
build/
# Test coverage reports
coverage/
.nyc_output/
# npm pack tarballs
*.tgz

# === VSCode ===
# Ignore personal editor config…
.vscode/*
# …but keep shared settings the whole team should get
!.vscode/settings.json
!.vscode/extensions.json
!.vscode/tasks.json
!.vscode/launch.json
# Per-user workspace files
*.code-workspace

# === JetBrains IDEs ===
# Project workspace dir — contains per-user state
.idea/
*.iml
*.ipr
*.iws
# Default compile output for IntelliJ
out/

# === macOS ===
# Finder folder metadata
.DS_Store
.AppleDouble
.LSOverride
# Resource forks created by Finder on non-HFS volumes
._*
.Spotlight-V100
.Trashes
.fseventsd
.TemporaryItems

# === Windows ===
# Explorer thumbnail cache
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Per-folder Explorer settings
Desktop.ini
$RECYCLE.BIN/
# Windows shortcuts
*.lnk
*.stackdump

# === Env files ===
# Top-level secrets — never commit
.env
# Local overrides (Next.js, Vite, Nuxt, …)
.env.local
# Per-environment local overrides
.env.*.local
# DO commit examples so teammates know which keys are needed
!.env.example
!.env.sample