3932f1f0ce
Libraries/Projects using [Composer](http://getcomposer.org) for dependency management should include a `.gitignore` file like this. It ignores the vendor folder which Composer uses for dependencies, classmaps and others. Composer keeps git repositories in this folder so it is cleaner if it is ignored. [`composer.lock` should not be ignored.](http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file) > Commit your application's composer.lock (along with composer.json) into version control. > For your library you may commit the composer.lock file if you want to. This can help your team to always test against the same dependency versions. However, this lock file will not have any effect on other projects that depend on it. It only has an effect on the main project. |
||
---|---|---|
Global | ||
Actionscript.gitignore | ||
Android.gitignore | ||
AppceleratorTitanium.gitignore | ||
Autotools.gitignore | ||
Bancha.gitignore | ||
C.gitignore | ||
C++.gitignore | ||
CakePHP.gitignore | ||
CFWheels.gitignore | ||
Clojure.gitignore | ||
CMake.gitignore | ||
CodeIgniter.gitignore | ||
Compass.gitignore | ||
Composer.gitignore | ||
Concrete5.gitignore | ||
CONTRIBUTING.md | ||
Coq.gitignore | ||
Dart.gitignore | ||
Delphi.gitignore | ||
Django.gitignore | ||
Drupal.gitignore | ||
Eagle.gitignore | ||
Erlang.gitignore | ||
ExpressionEngine.gitignore | ||
Finale.gitignore | ||
ForceDotCom.gitignore | ||
FuelPHP.gitignore | ||
gcov.gitignore | ||
Go.gitignore | ||
Grails.gitignore | ||
GWT.gitignore | ||
Haskell.gitignore | ||
Java.gitignore | ||
Jboss.gitignore | ||
Jekyll.gitignore | ||
Joomla.gitignore | ||
Jython.gitignore | ||
Kohana.gitignore | ||
LaTeX.gitignore | ||
Leiningen.gitignore | ||
LemonStand.gitignore | ||
LICENSE | ||
Lilypond.gitignore | ||
Lithium.gitignore | ||
Magento.gitignore | ||
Maven.gitignore | ||
nanoc.gitignore | ||
Node.gitignore | ||
Objective-C.gitignore | ||
OCaml.gitignore | ||
Opa.gitignore | ||
opencart.gitignore | ||
OracleForms.gitignore | ||
Perl.gitignore | ||
PlayFramework.gitignore | ||
Plone.gitignore | ||
Python.gitignore | ||
Qooxdoo.gitignore | ||
Qt.gitignore | ||
R.gitignore | ||
Rails.gitignore | ||
README.md | ||
RhodesRhomobile.gitignore | ||
Ruby.gitignore | ||
Scala.gitignore | ||
Sdcc.gitignore | ||
SeamGen.gitignore | ||
SketchUp.gitignore | ||
SugarCRM.gitignore | ||
Symfony2.gitignore | ||
Symfony.gitignore | ||
SymphonyCMS.gitignore | ||
Target3001.gitignore | ||
Tasm.gitignore | ||
Textpattern.gitignore | ||
TurboGears2.gitignore | ||
Typo3.gitignore | ||
Unity.gitignore | ||
VisualStudio.gitignore | ||
Waf.gitignore | ||
WordPress.gitignore | ||
Yii.gitignore | ||
ZendFramework.gitignore |
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.