Hacker News new | past | comments | ask | show | jobs | submit login

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: