My .gitignore file has the following line
vendor/
I have modified a file inside the vendor folder.
Now when I do update my bundles by performing –
bin/vendors install
- I see the following message
“Bundle name” has local modifications. Please commit or revert/push them before running this command again.
I realize that I should have not changed anything in bundles and am trying to correct that mistake.
When I try to revert the file by issuing the command:
git revert <path>/<filename>.twig
I get this error message
fatal: empty commit set passed
git rm doesn’t work either.
How can I make my bundle install?
You can do either:
Revert the file you changed to its initial state:
Remove the
vendor/directory and runbin/vendors installagain. That way you are sure everything is new.A rule of thumb of thumb is that should NEVER modify files in the
vendor/directory.Hope that helps!