I'm working on a git repo that contains submodules
. I've got branches by the same name (like master
, development
..) in all submodules (including parent module) and they all track their corresponding remote branches.
I'd like to have same branches checked-out in all submodules at a time. In other words, what I want is that if I switch to development
branch in parent module, all submodules should also switch to development
branch so that my working tree remains consistent with branches.
Manually doing this is painful and repetitive. Is there is shortcut?