A collection of useful .gitignore templates
Switch branches/tags
Nothing to show
Pull request Compare This branch is 7 commits ahead, 2338 commits behind github:master.
Failed to load latest commit information.
Global Merge pull request #183 from x3ro/master Sep 1, 2011
Actionscript.gitignore Update to the Actionscript ignore file to put the .settings reference… Nov 9, 2010
Android.gitignore Updated Generated Files location (*R was kind of dangerous), added lo… Apr 27, 2011
Autotools.gitignore Removed empty line from Autotools.gitignore Nov 23, 2010
C++.gitignore Fixed comments in C++.gitignore Nov 12, 2010
CFWheels.gitignore add cfwheels gitignore Feb 22, 2011
CMake.gitignore Added a .gitignore for files auto-generated by the CMake build-system. Nov 9, 2010
CSharp.gitignore ReSharper is a add-in which works in Visual Studio only. It's already… May 28, 2011
CakePHP.gitignore Don't ignore empty files meant to preserve the file structure of an a… Nov 23, 2010
Clojure.gitignore Add .gitignore for Leiningen projects Apr 8, 2011
CodeIgniter.gitignore Changes to support CodeIgniter (Reactor) 2.0 May 12, 2011
Compass.gitignore Ignore .sass-cache directory in Compass projects. May 10, 2011
Concrete5.gitignore Added Concrete5 CMS .gitignore file Nov 10, 2010
Coq.gitignore add Coq gitignore Nov 23, 2010
Django.gitignore Added .pyc to Django.gitignore Apr 2, 2011
Drupal.gitignore Added more rules to work as non core drupal developer Feb 22, 2011
Erlang.gitignore Added *.plt used by dialyzer Jun 13, 2011
ExpressionEngine.gitignore Added ExpressionEngine gitignore file. Nov 12, 2010
Finale.gitignore Added a gitignore file for the Finale music notation software Sep 1, 2011
ForceDotCom.gitignore Initial commit, Force.com gitignore file. Aug 30, 2011
FuelPHP.gitignore FuelPHP gitignore Aug 17, 2011
Go.gitignore Added Go.gitignore Nov 9, 2010
Grails.gitignore Added common .gitignore for the Grails framework Nov 9, 2010
Haskell.gitignore Added cabal-dev dir. Aug 7, 2011
Java.gitignore Added Java package files (JAR, WAR, EAR) Sep 2, 2011
Jboss.gitignore Jboss gitignore file Feb 22, 2011
Jekyll.gitignore Add Jekyll.gitignore Aug 2, 2011
Joomla.gitignore Added Joomla 1.6 May 1, 2011
Jython.gitignore Jython ignores Nov 8, 2010
Kohana.gitignore Kohana-PHP gitignore Nov 8, 2010
LaTeX.gitignore Merge pull request #180 from DigitalGuru/master Sep 2, 2011
Leiningen.gitignore Add .gitignore for Leiningen projects Apr 8, 2011
LemonStand.gitignore Add LemonStand gitignore. Feb 22, 2011
Lilypond.gitignore Add ignore file for lilypond. Feb 22, 2011
Lithium.gitignore Adding Lithium ignores. Nov 9, 2010
Magento.gitignore update Magento.gitignore to work with Magento 1.6 Jul 9, 2011
Maven.gitignore Added Maven gitignore Nov 9, 2010
Node.gitignore checking in the node_modules dir is best practice for app developers Jan 6, 2012
OCaml.gitignore Add OCaml gitignore Nov 23, 2010
Objective-C.gitignore Fixed comment in Objective-C.gitignore Nov 12, 2010
Perl.gitignore added .build - used by Dist::Zilla Mar 13, 2011
PlayFramework.gitignore Ignoring precompiled directory Apr 8, 2011
Python.gitignore Update Python.gitignore with some commonly used patterns for buildout… Apr 5, 2011
Qooxdoo.gitignore Add gitignore for qooxdoo apps Feb 22, 2011
README.md Fix readme about config setting Nov 9, 2010
Rails.gitignore config/*.yml should not be ignored in Rails Dec 4, 2011
RhodesRhomobile.gitignore Add Rhodes mobile application framework gitignore Nov 9, 2010
Ruby.gitignore Keep entries sorted to make it easier to lookup for a specific item o… Apr 8, 2011
Scala.gitignore Add ".scala_dependencies" file generated by Scala-IDE Jun 11, 2011
SeamGen.gitignore Added ignore patterns for projects generated using seam-gen Nov 23, 2010
SugarCRM.gitignore Sometime the emails folder starts with an uppercase letter. Aug 18, 2011
Symfony.gitignore Added plugin-generated model paths to symfony-1 ignore file. Aug 20, 2011
Symfony2.gitignore Updated through http://www.deanoj.co.uk/programming/git/git-ignore-fi… Sep 2, 2011
SymphonyCMS.gitignore Adding Symphony CMS gitignore Jun 17, 2011
Tasm.gitignore Add Tasm.gitignore Feb 22, 2011
TurboGears2.gitignore Add for TurboGears2 (based off of Python template) Nov 9, 2010
VB.Net.gitignore Added a VB.Net gitignore Nov 23, 2010
Waf.gitignore added Waf.gitignore Nov 23, 2010
Wordpress.gitignore Included root directory notation for wp-*.php, also added wp-config.p… Jan 6, 2012
Yii.gitignore Adding Yii ignores Feb 22, 2011
ZendFramework.gitignore Added ZendFramework.gitignore. Nov 23, 2010
gcov.gitignore .gitignore for gcov files Jan 31, 2011
nanoc.gitignore Add gitignore for nanoc May 30, 2011
opencart.gitignore Opencart gitignore file May 12, 2011


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.