if relevant: Laravel. PHP 7.0.3
Hi! I had to delete 'vendor' folder in my project and do "composer install" to re-install all libraries. Then I modified some project's files (outside "/vendor").
git status
showed me not only my project files being modified, but all the files inside '/vendor' being deleted and then modified.
After
git add . && git status
shows all projects modified files and all files from "/vendor" in the list of "changes to be committed".
My .gitignore file has a line:
/vendor
And I thought that it would prevent any files in "/vendor" folder to be added to index and commited. But it seems to me now that all the changes in this folder are going to be committed to server which I don't want.
Are changes in '/vendor' folder are going to be committed and pushed to remote despite '/vendor' is in .gitignore? If yes, how can I undo git add?:)
Thank you in advance.
I don't think my question is duplicate (I've read them). My .gitignore had /vendor in it before I deleted vendor folder and re-installed everything via composer.