Laravel – remove vendor from git

In case you have accidentally committed your vendor folder, you can easily remove it by following these steps:

git rm -r --cached vendor
git rm -r --cached composer.lock
git commit -m "untrack vendor directory"
git push

Write a Comment

Comment