Toolstia / .gitignore generator
.gitignore generator
Tick the languages, editors and operating systems you use and get a combined .gitignore file with clear sections. Duplicate patterns are removed, and you can add your own.
Save the result as a file named .gitignore in the root of your project. Files that are already tracked by git stay tracked until you remove them with git rm --cached. Review the patterns, because every project differs, for example some projects commit their lock files or build folders.
How it works
- Tick what you use.
- Add any custom patterns.
- Copy the result into a file named .gitignore.
What is included
Templates cover Node.js, Python, Java, Go, Rust, PHP, Ruby, .NET, Swift, Android, Unity, Terraform, Docker, macOS, Windows, Linux, JetBrains, VS Code and Vim.
Where to put it
Save it as .gitignore in the root folder of your repository, and commit it.
Already tracked files
Git keeps tracking files it already knows about. Run git rm --cached on them to stop.
Check it
Every project differs. For example some projects commit lock files or a build folder, so edit the result to fit.
Questions
Does it include secrets?
Patterns such as .env are included, but never rely on .gitignore alone to keep secrets out. Rotate any secret that was committed.
Can I add folders?
Yes. Type your own patterns, one per line.
Is my selection stored?
Everything happens in your browser, and nothing you enter is sent anywhere.