浏览代码

Merge pull request #3936 from ajpevers/patch-1

Ignore all .git dirs in the vendor dir recursively
Jordi Boggiano 10 年之前
父节点
当前提交
31359510e5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      doc/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md

+ 1 - 1
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.
    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
    but this means you will have to delete those dependencies from disk before
    running composer update.
    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
    This approach does not require that you delete dependencies from disk prior to
    running a composer update.
    running a composer update.