The scenario is:
I have some submodules with some branches.
- sdk (develop, release-1.0)
- api (develop, release-1.0)
And everytime that I need to build my app I just do this
git checkout develop && git submodule foreach --recursive git checkout develop
but then I have to move over every submodule folder and do the pull in the specific branch that I want to.
I'm asking if there is a way to do the same recursive command with pull on specific branch.