您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Justin Spahr-Summers b2c694d792 Merge pull request #576 from nysa/master 11 年前
Global Ignore Vim untitled and unsaved buffer swapfiles 11 年前
Actionscript.gitignore Project files (`.project`, `.actionScriptProperties` and `.flexProperties`) removed from .gitignore as they should be version-controlled. 12 年前
Android.gitignore add intellij files to Android.gitignore 11 年前
AppceleratorTitanium.gitignore Added Appcelerator Titanium .gitignore file. 11 年前
Autotools.gitignore Removed empty line from Autotools.gitignore 13 年前
Bancha.gitignore bancha-cms gitignore 12 年前
C++.gitignore ignoring dynamic link library in MacOS X 12 年前
C.gitignore Add versioned so, .a, .dylib, .app 12 年前
CFWheels.gitignore add cfwheels gitignore 13 年前
CMake.gitignore Added a .gitignore for files auto-generated by the CMake build-system. 13 年前
CONTRIBUTING.md add a CONTRIBUTING.md file 11 年前
CakePHP.gitignore Make CakePHP ignore config folder of either case 12 年前
Clojure.gitignore Add .gitignore for Leiningen projects 13 年前
CodeIgniter.gitignore Changes to support CodeIgniter (Reactor) 2.0 13 年前
Compass.gitignore Ignore .sass-cache directory in Compass projects. 13 年前
Concrete5.gitignore Concrete5: Also ignore /tmp files 11 年前
Coq.gitignore add Coq gitignore 13 年前
Dart.gitignore Add Dart language support 11 年前
Delphi.gitignore Delphi gitignore 12 年前
Django.gitignore Added .pyc to Django.gitignore 13 年前
Drupal.gitignore * Updated comments 12 年前
Eagle.gitignore .gitignore file for Eagle 11 年前
Erlang.gitignore Erlang.gitignore erlang.crash.dump added 11 年前
ExpressionEngine.gitignore Added ExpressionEngine gitignore file. 13 年前
Finale.gitignore Added a gitignore file for the Finale music notation software 12 年前
ForceDotCom.gitignore Initial commit, Force.com gitignore file. 12 年前
FuelPHP.gitignore FuelPHP gitignore 12 年前
GWT.gitignore better now. 12 年前
Go.gitignore Added Go.gitignore 13 年前
Grails.gitignore a more complete .gitignore for Grails 1.2 and 1.3 12 年前
Haskell.gitignore Added .virthualenv directory. 12 年前
Java.gitignore Added Java package files (JAR, WAR, EAR) 12 年前
Jboss.gitignore Jboss gitignore file 13 年前
Jekyll.gitignore Add Jekyll.gitignore 13 年前
Joomla.gitignore Added Joomla 1.6 13 年前
Jython.gitignore Jython ignores 13 年前
Kohana.gitignore Kohana-PHP gitignore 13 年前
LICENSE Update LICENSE 11 年前
LaTeX.gitignore Ignore *.tdo files generated by the todonotes package 12 年前
Leiningen.gitignore Update Leiningen.gitignore 11 年前
LemonStand.gitignore added content_*.php with a suggestion 12 年前
Lilypond.gitignore Add ignore file for lilypond. 13 年前
Lithium.gitignore The Lithium app should be the root repo folder 11 年前
Magento.gitignore Restored missing lines. 12 年前
Maven.gitignore Added Maven gitignore 13 年前
Node.gitignore Update Node.gitignore 11 年前
OCaml.gitignore Add OCaml gitignore 13 年前
Objective-C.gitignore Remove Podfile.lock from Objective-C ignores 11 年前
Opa.gitignore Added Opa.gitignore 12 年前
OracleForms.gitignore added gitignore for Oracle Forms development 12 年前
Perl.gitignore Do not ignore directory matching /Build/ 12 年前
PlayFramework.gitignore Merge pull request #212 from ikeike443/patch-1 11 年前
Plone.gitignore Add Plone CMS git .ignore file 12 年前
Python.gitignore Merge pull request #329 from svkampen/patch-1 11 年前
Qooxdoo.gitignore Add gitignore for qooxdoo apps 13 年前
Qt.gitignore dynlib => dylib (msspl) 12 年前
R.gitignore add 'R.gitignore' for R 12 年前
README.md Update README to detail best pull request style 11 年前
Rails.gitignore Merge pull request #463 from michaelminter/patch-1 11 年前
RhodesRhomobile.gitignore Add Rhodes mobile application framework gitignore 13 年前
Ruby.gitignore Keep entries sorted to make it easier to lookup for a specific item or spot duplicates. 13 年前
Scala.gitignore Add ".scala_dependencies" file generated by Scala-IDE 13 年前
Sdcc.gitignore Adding support for SDCC compiler files 12 年前
SeamGen.gitignore Update SeamGen.gitignore 12 年前
SketchUp.gitignore Add gitignore for sketchup backup files. 12 年前
SugarCRM.gitignore Group custom/ dirs in SugarCRM ignore 12 年前
Symfony.gitignore symfony creates symlinks to plugins in the web folder 12 年前
Symfony2.gitignore Added parameters.yml to list for Symfony2. 12 年前
SymphonyCMS.gitignore added symphony and workspace/uploads dir 12 年前
Target3001.gitignore Added new extensions of production formats which were introduced in version 15.4.0.59 13 年前
Tasm.gitignore Add Tasm.gitignore 13 年前
Textpattern.gitignore Added Textpattern gitignore 12 年前
TurboGears2.gitignore Add for TurboGears2 (based off of Python template) 13 年前
Typo3.gitignore Added gitignore file for Typo3. 11 年前
Unity.gitignore Add Unity gitignore 12 年前
VisualStudio.gitignore Unignore "packages/*/build" in VisualStudio.gitignore. 11 年前
Waf.gitignore added Waf.gitignore 13 年前
WordPress.gitignore Renamed Wordpress.gitignore to WordPress.gitignore 11 年前
Yii.gitignore Adding Yii ignores 13 年前
ZendFramework.gitignore Added ZendFramework.gitignore. 13 年前
gcov.gitignore .gitignore for gcov files 13 年前
nanoc.gitignore Add gitignore for nanoc 13 年前
opencart.gitignore fix Opencart gitignore 12 年前

README.md

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.