1
0
Fork 0

Update should-i-commit-the-dependencies-in-my-vendor-directory.md

Tweak option #3 for including dependencies in a GIT repo.
pull/1718/head
Jonathan Reinink 2013-03-21 09:55:13 -03:00
parent 5a0e97ccb6
commit 5b3d8dc874
1 changed files with 3 additions and 3 deletions

View File

@ -24,6 +24,6 @@ If you really feel like you must do this, you have three options:
you can add them to your git repo. You can do that with `rm -rf vendor/**/.git` you can add them to your git repo. You can do that with `rm -rf vendor/**/.git`
but this means you will have to delete those dependencies from disk before but this means you will have to delete those dependencies from disk before
running composer update. running composer update.
3. Add a .gitignore rule (`vendor/.git`) to ignore all the vendor .git folders. 3. Add a .gitignore rule (`vendor/.git`) to ignore all the vendor `.git` folders.
This approach does not require to you delete dependencies from disk prior to This approach does not require that you delete dependencies from disk prior to
running composer update. running a composer update.