A collection of useful .gitignore templates

6 years after

A Collection of Useful .gitignore Templates

That's what we're trying to build. Please contribute by forking and sending a pull request.

Also please only modify one file per commit. This'll make merging easier for everyone.

Global gitignores (OS-specific, editor-specific) should go into the Global/ directory.

For more information on gitignore: gitignore(5)

Global Ignores

git has a global configuration that applies rules to all of your projects. For example:

git config --global core.excludesfile ~/.global_ignore

... will apply the rules in ~/.global_ignore for all of your repos.

This is useful if you use an editor (like Emacs) that drops backup files, or if you work in an environment that generates binary or intermediate files that are always ignored.

Related Repositories

Create useful .gitignore files for your project ...



Gulp plugin to exclude file contained in .gitignore from the stream ...



Generate a .gitignore file from the command line when Generate's CLI is installe ...



A gem to generate .gitignore files base on templates ...



Syntax highlighting for .gitignore files in Atom ...

Top Contributors

defunkt d2s peat fhemberger adamv jeffrydegrande dcolish bshaffer cbrammer bgrainger mrtazz jmalonzo nu7hatch pvande rondevera amrnt oxlade39 rtaycher cored kappa avsm benbjohnson bnoordhuis cfurrow cskau cdlm dannymcc dabit dima767 hosamaly