← Back to Tools
📁.gitignore Generator
Generate .gitignore files for your projects. Select templates for your tech stack.
Select Templates
Languages & Frameworks
Operating Systems
IDEs & Editors
Custom Entries
.gitignore Preview
# Node.js node_modules/ npm-debug.log* yarn-debug.log* yarn-error.log* .npm .yarn-integrity *.tgz .env .env.local .env.*.local dist/ build/ .cache/ # macOS .DS_Store .AppleDouble .LSOverride ._* .Spotlight-V100 .Trashes .fseventsd
About .gitignore
What is .gitignore?
A file that tells Git which files or folders to ignore in a project. Keeps your repo clean from build artifacts, dependencies, and sensitive files.
Pattern Syntax
*- matches anything**- matches nested dirs/- directory separator!- negate a pattern
Best Practices
- • Never commit secrets (.env)
- • Ignore dependencies (node_modules)
- • Ignore build outputs (dist, build)
- • Include OS-specific ignores