Here\'s the story:
I have 2 git branches master
and develop
I\'m currently on develop
.
I\'ve long since had the source files o
Unfortunately, I think this is just one of the drawbacks of using submodules. These problems are described in a section called "Issues with Submodules" in Pro Git, but in short, the simplest workaround is to move the submodule directory out of the way before switching to the master
branch:
mv Vendor Vendor.moved
git checkout master
Similarly, when you change to develop
, you should do:
git checkout develop
mv Vendor.moved Vendor
Now it can be made easier. Use command git checkout -f master
.