.gitignore Generator
Fast and free tool to create a custom .gitignore file for the technologies, frameworks, and tools that you use.
Select your Tech Stack
Frequently Asked Questions
What is a .gitignore file?
A .gitignore file helps keep your Git repository clean and clutter-free. It tells Git to ignore things you don't actually want in version control - things like compiled files, big dependency folders (like node_modules), IDE settings, OS junk like .DS_Store, and anything sensitive, such as API keys. Using a .gitignore file keeps your repository lighter, cuts down on annoying merge conflicts from auto-generated files, and helps make sure you don't accidentally commit something you really shouldn't.
Where does the .gitignore data come from?
We use a mirror of the collection of templates provided by the official GitHub repository. Using this repository allows us to serve data quickly, and keep our collection up-to-date with the latest technologies.
What if Git is already tracking a file in my .gitignore?
Your .gitignore file only prevents adding files that are not already tracked by Git. If you need to untrack a file that is already in your Git repository, you must run the command
git rm --cached <file>.Can I customize the generated .gitignore file?
Of course! While our platform can generate a solid foundation for your .gitignore file, your specific needs may well go beyond its scope. A .gitignore file uses simple pattern matching, so adding custom rules to blacklist specific file extensions, directories, or patterns is easy! Just remember, we don't know your customizations, so if you ever use the provided edit link, you'll need to reapply your customizations by hand.
There are so many similar tools available! Why create another one?
The tool I've historically used is no longer maintained and has occasional issues. While there are undoubtedly many other options available, most I found didn't work the way I wanted, weren't open source, or were missing templates I use regularly. In the end, creating my own site lets me make it work the way I want.