A collection of useful .gitignore templates
Go to file
Justin Spahr-Summers 4a7ab06382 Remove generic and Java ignore patterns
Those belong in other ignore files.
2013-11-13 14:19:16 -08:00
Global Remove generic and Java ignore patterns 2013-11-13 14:19:16 -08:00
Actionscript.gitignore Project files (.project, .actionScriptProperties and .flexProperties) removed from .gitignore as they should be version-controlled. 2012-06-26 10:42:51 +03:00
Android.gitignore add intellij files to Android.gitignore 2012-12-19 14:57:35 -08:00
AppceleratorTitanium.gitignore Added Appcelerator Titanium .gitignore file. 2012-08-22 18:06:15 -07:00
Autotools.gitignore Removed empty line from Autotools.gitignore 2010-11-23 08:40:50 +02:00
Bancha.gitignore bancha-cms gitignore 2012-04-20 10:12:43 +02:00
C.gitignore ignore kernel object files 2013-07-19 18:05:04 +01:00
C++.gitignore ignoring dynamic link library in MacOS X 2012-07-07 06:11:09 +09:00
CakePHP.gitignore Make CakePHP ignore config folder of either case 2012-08-03 12:18:45 +10:00
CFWheels.gitignore add cfwheels gitignore 2011-02-21 18:02:55 -08:00
Clojure.gitignore Add .gitignore for Leiningen projects 2011-04-08 21:02:05 +03:00
CMake.gitignore Added a .gitignore for files auto-generated by the CMake build-system. 2010-11-09 15:51:41 +08:00
CodeIgniter.gitignore Changes to support CodeIgniter (Reactor) 2.0 2011-05-11 22:56:28 -07:00
Compass.gitignore Ignore .sass-cache directory in Compass projects. 2011-05-10 18:16:30 +02:00
Concrete5.gitignore Concrete5: Also ignore /tmp files 2012-10-16 16:21:31 +03:00
CONTRIBUTING.md add a CONTRIBUTING.md file 2012-12-22 22:49:43 -08:00
Coq.gitignore add Coq gitignore 2010-11-22 17:42:32 -08:00
Dart.gitignore Add Dart language support 2012-10-26 17:58:35 -07:00
Delphi.gitignore Delphi gitignore 2012-03-08 20:45:16 +09:00
Django.gitignore Added .pyc to Django.gitignore 2011-04-01 22:44:05 -04:00
Drupal.gitignore * Updated comments 2012-07-15 18:53:32 +02:00
Eagle.gitignore .gitignore file for Eagle 2012-08-15 01:43:20 +02:00
Erlang.gitignore Erlang.gitignore erlang.crash.dump added 2013-01-14 15:01:00 +06:00
ExpressionEngine.gitignore Added ExpressionEngine gitignore file. 2010-11-13 05:55:14 +08:00
Finale.gitignore Added a gitignore file for the Finale music notation software 2011-09-01 13:04:09 -04:00
ForceDotCom.gitignore Initial commit, Force.com gitignore file. 2011-08-30 05:41:07 -07:00
FuelPHP.gitignore FuelPHP gitignore 2011-08-17 00:55:26 -05:00
gcov.gitignore .gitignore for gcov files 2011-02-01 06:03:02 +08:00
Go.gitignore Added Go.gitignore 2010-11-10 03:43:58 +08:00
Grails.gitignore a more complete .gitignore for Grails 1.2 and 1.3 2012-02-06 12:47:44 -07:00
GWT.gitignore better now. 2012-01-12 16:37:34 -02:00
Haskell.gitignore Added .virthualenv directory. 2012-04-01 00:28:35 -07:00
Java.gitignore Added Java package files (JAR, WAR, EAR) 2011-09-01 17:03:22 -07:00
Jboss.gitignore Jboss gitignore file 2011-02-21 17:56:28 -08:00
Jekyll.gitignore Add Jekyll.gitignore 2011-08-02 21:36:51 +01:00
Joomla.gitignore Added Joomla 1.6 2011-05-01 18:11:31 +01:00
Jython.gitignore Jython ignores 2010-11-09 04:49:58 +08:00
Kohana.gitignore Kohana-PHP gitignore 2010-11-09 04:49:25 +08:00
LaTeX.gitignore Ignore *.tdo files generated by the todonotes package 2012-06-29 14:54:27 +02:00
Leiningen.gitignore Update Leiningen.gitignore 2012-10-11 16:59:14 -07:00
LemonStand.gitignore added content_*.php with a suggestion 2011-11-13 13:24:49 -05:00
LICENSE Update LICENSE 2013-05-25 23:56:08 -06:00
Lilypond.gitignore Add ignore file for lilypond. 2011-02-21 17:57:27 -08:00
Lithium.gitignore The Lithium app should be the root repo folder 2012-09-01 19:10:36 -03:00
Magento.gitignore Restored missing lines. 2012-03-16 18:49:26 -03:00
Maven.gitignore Added Maven gitignore 2010-11-09 16:08:50 +08:00
nanoc.gitignore Add gitignore for nanoc 2011-05-29 21:24:34 -04:00
Node.gitignore Update Node.gitignore 2012-11-08 14:07:25 +01:00
Objective-C.gitignore Remove Podfile.lock from Objective-C ignores 2013-07-03 08:28:28 -07:00
OCaml.gitignore Add OCaml gitignore 2010-11-23 09:36:53 +08:00
Opa.gitignore Added Opa.gitignore 2012-03-03 02:08:17 +01:00
opencart.gitignore fix Opencart gitignore 2012-08-01 10:56:28 +03:00
OracleForms.gitignore added gitignore for Oracle Forms development 2012-03-19 16:46:57 -04:00
Perl.gitignore Do not ignore directory matching /Build/ 2011-11-09 00:41:11 +01:00
PlayFramework.gitignore Merge pull request #212 from ikeike443/patch-1 2012-10-04 17:44:49 -07:00
Plone.gitignore Add Plone CMS git .ignore file 2012-04-20 14:22:30 -04:30
Python.gitignore Merge pull request #329 from svkampen/patch-1 2013-01-20 21:15:08 -08:00
Qooxdoo.gitignore Add gitignore for qooxdoo apps 2011-02-21 18:08:18 -08:00
Qt.gitignore dynlib => dylib (msspl) 2012-06-09 16:36:58 +03:00
R.gitignore add 'R.gitignore' for R 2011-10-08 09:23:47 +02:00
Rails.gitignore added secret_token.rb 2013-08-12 12:40:19 -05:00
README.md Update README to detail best pull request style 2012-09-23 14:31:30 -07:00
RhodesRhomobile.gitignore Add Rhodes mobile application framework gitignore 2010-11-10 03:44:16 +08:00
Ruby.gitignore Keep entries sorted to make it easier to lookup for a specific item or spot duplicates. 2011-04-08 10:54:24 +02:00
Scala.gitignore Add ".scala_dependencies" file generated by Scala-IDE 2011-06-11 16:28:19 -07:00
Sdcc.gitignore Adding support for SDCC compiler files 2012-05-28 21:51:25 -07:00
SeamGen.gitignore Update SeamGen.gitignore 2012-07-31 11:57:21 +08:00
SketchUp.gitignore Add gitignore for sketchup backup files. 2012-01-18 17:33:11 -06:00
SugarCRM.gitignore Group custom/ dirs in SugarCRM ignore 2012-04-18 11:38:58 -07:00
Symfony2.gitignore Added parameters.yml to list for Symfony2. 2012-03-19 18:54:06 +00:00
Symfony.gitignore symfony creates symlinks to plugins in the web folder 2012-02-02 09:58:20 -06:00
SymphonyCMS.gitignore added symphony and workspace/uploads dir 2012-04-11 11:39:01 +03:00
Target3001.gitignore Added new extensions of production formats which were introduced in version 15.4.0.59 2011-08-02 23:17:42 +02:00
Tasm.gitignore Add Tasm.gitignore 2011-02-21 18:03:04 -08:00
Textpattern.gitignore Added Textpattern gitignore 2012-01-17 11:04:16 +00:00
TurboGears2.gitignore Add for TurboGears2 (based off of Python template) 2010-11-09 15:46:02 +08:00
Typo3.gitignore Added gitignore file for Typo3. 2012-10-17 12:05:58 +02:00
Unity.gitignore Add Unity gitignore 2012-03-24 23:22:27 +11:00
VisualStudio.gitignore Unignore "packages/*/build" in VisualStudio.gitignore. 2013-06-28 16:44:00 -07:00
Waf.gitignore added Waf.gitignore 2010-11-22 17:54:05 -08:00
WordPress.gitignore Renamed Wordpress.gitignore to WordPress.gitignore 2013-01-19 17:03:36 +11:00
Yii.gitignore Adding Yii ignores 2011-02-21 18:08:03 -08:00
ZendFramework.gitignore Added ZendFramework.gitignore. 2010-11-23 19:07:09 +03:30

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)

Pull Requests

Since this repo includes a large and diverse number of programming languages, frameworks, editors, and ecosystems, it's very helpful if you can provide a link to information supporting your pull request. Up-to-date, canonical documentation that mentions the files to be ignored is best.

This ensures we can efficiently go through pull requests and keep quality high.

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.