.gitignore Builder
Build .gitignore files from popular templates for any stack
SEO & Config Runs in your browser
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
1Click on the templates that match your project stack
2Add any custom patterns in the text area below
3The combined .gitignore is generated on the right
4Copy or download the generated file
Frequently Asked Questions
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.