Generators
.gitignore Generator
Build a .gitignore by combining templates for your languages, frameworks, editors and OS.
- Runs in your browser
- Instant results
- Free, no sign-up
Loading the tool…
How to use the Gitignore Generator
- Search and select the templates you need.
- Review the combined file.
- Copy it or download it and save it as .gitignore.
Frequently asked questions
Where do I put the .gitignore file?
In the root folder of your repository.
Why are ignored files still tracked?
Files already committed stay tracked. Run git rm --cached <file> to stop tracking them.
Should .env files be ignored?
Yes. They usually contain secrets. Commit an .env.example with placeholder values instead.