.gitignore Builder

SEO & Config

Build .gitignore files from popular templates for any stack

Runs in browser Instant No tracking

Select Templates

.gitignore

# Node.js
node_modules/
dist/
build/
.env
.env.local
.env.*.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
*.tsbuildinfo
.nuxt/
.next/
.output/

# macOS
.DS_Store
.AppleDouble
.LSOverride
Icon
._*
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

How to use

  1. 1Click on the templates that match your project stack
  2. 2Add any custom patterns in the text area below
  3. 3The combined .gitignore is generated on the right
  4. 4Copy or download the generated file

FAQ

What is .gitignore?

A .gitignore file tells Git which files and directories to ignore when committing changes. It prevents unnecessary files (like dependencies, build artifacts, and secrets) from being tracked.

Where should I place .gitignore?

Place .gitignore in the root of your Git repository. You can also have .gitignore files in subdirectories for more specific rules.

Can I combine multiple templates?

Yes! This tool lets you select multiple templates and combines them into a single .gitignore file. Select your language, OS, and IDE templates together.

Related tools