]> source.dussan.org Git - gitignore.git/commit
Add Composer.gitignore for composer packages 743/head
authorHaralan Dobrev <hkdobrev@gmail.com>
Mon, 19 Aug 2013 14:38:52 +0000 (17:38 +0300)
committerHaralan Dobrev <hkdobrev@gmail.com>
Sat, 9 Nov 2013 11:38:32 +0000 (13:38 +0200)
commit3932f1f0ce7a687f3df4ac376aa3561c28dd98c5
treed75cdf3342a7b73baf80edebd92b4176d0735a99
parentb2c694d792c005c770c42deaa868e97184e31794
Add Composer.gitignore for composer packages

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.
Composer.gitignore [new file with mode: 0644]