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

  1. Hello there! I know this is kinda off topic but I was wondering if you knew where I could get a
    captcha plugin for my comment form? I’m using the same blog platform as yours and I’m having problems finding
    one? Thanks a lot!