About this tool
Choose from more than thirty hand-maintained templates, from Node.js and Python to Unity, Terraform, Xcode and JetBrains IDEs, and they are merged into a single file. Rules that appear in several templates are written only once, each section gets a clear header, and you can append your own patterns at the end. Everything is assembled in your browser.
How to use Gitignore Generator
- Tick the languages, frameworks and tools your project uses.
- Add the operating systems and editors your team works with.
- Type any project-specific paths into the custom rules box.
- Copy the result or download it, then save it as .gitignore in your repository root.
Frequently asked questions
Why is a file still tracked after I added it to .gitignore?
Ignore rules only affect untracked files. Run git rm --cached <file> once and commit, and git will stop tracking it while leaving it on disk.
Should I commit lock files like package-lock.json?
Yes for applications, so every install gets the same dependency versions. None of these templates ignore lock files.
My download was saved without the leading dot. What now?
Some systems hide or rename files that start with a dot. Rename the file to exactly .gitignore, or create it in your editor and paste the copied text.