Only ignore root vendor directory

In Laravel, we often use `artisan vendor:publish` to copy views, notifications etc from dependencies so that they can be customized. These views are created in <type>/vendor/<dependency> directory.

When using the current gitignore for Laravel, vendor is inserted like vendor/ which ignores all the directories named vendor anywhere in the source tree, including the customized views.

The proposed file change tries to fix this problem by ensuring only the root vendor directory is ignored by git.
This commit is contained in:
Lake Robin 2018-09-12 15:16:16 +05:30 committed by GitHub
parent 35441e97b4
commit 67aa0dca06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
vendor/
/vendor/
node_modules/
npm-debug.log
yarn-error.log