Every repository needs a .gitignore on day one: without it, dependency folders, build output, logs and local secrets end up committed by accident. This tool merges the standard templates for your exact stack into one file, removes duplicate lines, and labels each section so the file stays readable.
How to use
- Tick every stack your project uses — Node, Python, Docker, your editor, your operating system.
- Add any project-specific patterns in the extra box, one per line.
- Click Generate .gitignore, then copy it or download it as
.gitignoreinto your repository root.
About this tool
Templates follow the widely used community conventions for each stack: Node ignores node_modules/, build output and local .env files; Python ignores __pycache__, virtual environments and test caches; Docker, macOS, Windows and Linux cover OS artefacts; editor templates cover VS Code and JetBrains. When two templates list the same pattern, it appears once. Negation lines (starting with !) are kept in their original order so they still re-include the files they are meant to protect.
How do I use this tool?
- Tick the templates that match your project.
- Optionally add extra patterns, one per line.
- Press Generate .gitignore, then copy or download the file into your repo root.
Where is this tool used?
Developers generate a .gitignore when starting a new repository, when adding a second language to an existing project (for example a Python API beside a Node frontend), or when cleaning up a repo that accidentally committed node_modules or .env files. It is a day-one-of-a-repository tool — the earlier it exists, the less history has to be rewritten.
What are the limitations?
Templates cover common cases, not every framework's quirks — check the output against your framework's own guidance before committing. The tool cannot untrack files you already committed; for those, remove them from the index first (git rm --cached <file>) and then commit the .gitignore.
Frequently asked questions
What does the .gitignore generator do?
It merges .gitignore templates for the stacks you tick — Node, Python, Docker, your editor and OS — into one clean file with duplicates removed and sections labelled, ready to copy or download.
Where do I put the generated file?
Save it as .gitignore in the root of your Git repository and commit it. Git then ignores matching files in that folder and all subfolders.
Why are some files still tracked after I add them?
A .gitignore only affects files Git is not already tracking. For files already committed, run git rm --cached followed by the filename, then commit — the file stays on your disk but leaves the repository.
Is anything uploaded?
No. The file is generated entirely in your browser from the templates on this page; nothing is sent or stored.
Updated November 2026 · Built and tested by Sharjeel Tahir · How our tools are tested