.gitignore Generator
Pick the languages, frameworks, and tools you're using to generate a combined .gitignore file, covering Node.js, Next.js, Python, IDEs, OS files and more.
Frequently asked questions
What if I add a rule after files are already tracked?+
Adding a pattern to .gitignore only prevents new, untracked files from being added; you'll need to explicitly run git rm --cached on files already tracked by git for the ignore rule to take effect on them.
Should .env be in .gitignore?+
Yes, always. Check the "Environment files" preset to include it, then double check it wasn't already committed in your project's history.
Can I combine multiple presets?+
Yes, select as many as apply to your project; the output combines them with a labeled comment above each section.