.gitignore Generator
Combine ready-made templates for languages, frameworks, editors and operating systems into one .gitignore.
# Node node_modules/ npm-debug.log* yarn-debug.log* yarn-error.log* pnpm-debug.log* .npm/ .eslintcache dist/ build/ coverage/ *.tsbuildinfo # Next.js .next/ out/ next-env.d.ts .vercel/ # Environment files .env .env.* !.env.example # macOS .DS_Store .AppleDouble .LSOverride ._* # VS Code .vscode/* !.vscode/settings.json !.vscode/extensions.json !.vscode/launch.json
How to use
Tick every template that matches your project.
Add any project-specific rules in the extra box.
Copy the result or download it as .gitignore and commit it.
Example
Node with environment files
The negated rule keeps a committed example file while ignoring real environment files.
Node, Environment files
# Node node_modules/ ... # Environment files .env .env.* !.env.example
Frequently Asked Questions
No. It only affects untracked files. To stop tracking a file, run git rm --cached on it and commit.
Capabilities
- Twenty templates
- Duplicate rules removed
- Your own extra rules
- Copy or download as .gitignore
- Environment-file and secrets patterns
Related Tools
Quickly find common Git commands and build tailored .gitignore templates for your projects.
Check a commit message against the Conventional Commits format and see exactly what to fix.
Select the ideal OSI-approved open source license (MIT, Apache 2.0, GPL, AGPL, BSD).
Generate sleek Shields.io badges for tech stacks, social profiles, and open source repositories.
Explore
Connected career roadmaps, algorithmic problems, and real-world curricula related to .gitignore Generator.
Clear, milestone-driven paths from first fundamentals to your target engineering role.
Backend Engineer / Distributed Systems Developer · 8-12 months
Full-Stack Software Engineer · 8-12 months
DevOps / Cloud Infrastructure Engineer · 8-12 months
Cybersecurity Analyst / AppSec Engineer · 8-12 months