From cc3a8379e228530e963b7d2d3ae89df6a649656f Mon Sep 17 00:00:00 2001 From: Anton Evers Date: Tue, 14 Apr 2015 09:46:53 +0200 Subject: [PATCH] Ignore all .git dirs in the vendor dir recursively In accordance with http://git-scm.com/docs/gitignore --- .../should-i-commit-the-dependencies-in-my-vendor-directory.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md b/doc/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md index cdbd3141c..14da5f5e3 100644 --- a/doc/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md +++ b/doc/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md @@ -27,6 +27,6 @@ If you really feel like you must do this, you have a few options: in ZSH or `find vendor/ -type d -name ".git" -exec rm -rf {} \;` in Bash. but this means you will have to delete those dependencies from disk before running composer update. -4. Add a .gitignore rule (`vendor/.git`) to ignore all the vendor `.git` folders. +4. Add a .gitignore rule (`/vendor/**/.git`) to ignore all the vendor `.git` folders. This approach does not require that you delete dependencies from disk prior to running a composer update.