.gitignore Generator

Select your tech stack to generate a clean, ready-to-use .gitignore file instantly.

Presets

Languages & Runtimes

Frameworks

Editors & IDEs

Operating Systems

DevOps & Tools

Generated .gitignore41 lines
# Node.js
node_modules/
dist/
build/
.env
.env.local
.env.*.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
.pnp
.pnp.js
coverage/
.nyc_output/
*.tgz
.npm

# VS Code
.vscode/
*.code-workspace
.history/

# macOS
.DS_Store
.AppleDouble
.LSOverride
Icon
._*
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

What Is .gitignore?

A .gitignore file tells Git which files and directories to exclude from version control. Without it, build artifacts, dependency folders like node_modules, sensitive environment files, OS-specific metadata, and IDE configurations can pollute your repository. A well-maintained .gitignore keeps your history clean and prevents accidental commits of secrets or binary files that do not belong in source control.

How to Use This Generator

Select the technologies you use in your project from the grid below, or click a preset like 'Full Stack' to select common combinations. The .gitignore preview updates in real time as you make selections. Each technology block is clearly labeled and sorted. When done, copy the result or click Download to save the file directly as .gitignore.

Recommended Patterns per Stack

Node.js projects should always ignore node_modules, dist, and .env files. Python projects need to ignore __pycache__, .venv, and *.pyc files. macOS users should ignore .DS_Store. JetBrains IDE users should ignore .idea directories. Always include OS-specific rules even when working in teams, since different developers use different operating systems.

Stack Presets Available

  • Frontend Dev: Node.js + React/Next.js + VS Code + macOS
  • Backend Dev: Python + Docker + JetBrains + Linux
  • Full Stack: Node.js + Python + Docker + macOS + Windows
  • Mobile Dev: Flutter + Xcode + Android Studio + macOS
  • DevOps: Docker + Terraform + AWS CDK + Linux