Git how to include vendor directory in Zend Framework 2

I want to include "vendor" and all its subdirectories in my git repository because I edit a lot of external modules. I tried to exclude "vendor /" in the .gitignore file, but it doesn't work without deleting the ALL .gitignore and .gitmodules files in my project, so what else can prevent this directory from syncing?

+3


source to share


1 answer


So my understanding is that this problem occurs if there are repositories in the main repo as Paulo Bu suggested. You should update these repos by adding them as submodules to your project, but this is not my need. Since I change my code and add stuff to be able to commit my changes, I just deleted the hidden ".git" folder, making those folders under the "vendor" only regular folders, not any more .git repositories!



+3


source







All Articles