2 ms·
Submodules break a lot of other common git features such as switching branches. Instead you have to do something brutal like: git submodule deinit --all --fo
by fanf2 6y ago
Submodules break a lot of other common git features such as switching branches. Instead you have to do something brutal like:
git submodule deinit --all --force
git clean -dfx
git checkout newbranch
git submodule update --init --recursive
There might be cases where you can do a more lightweight switch, but they probably require iterating over the submodules.