I have a question regarding submodules in git:
I have a repository "SuperRepo" with submodule "A". Submodule "A" points to branch "develop" in .gitmodules. If I create a new branch in "SuperRepo", let's assume "fancyFeature", I sometimes change the branch of submodule "A" to a new branch with the same name. This is not always the case, but sometimes.
I can submit this change and the submodule points to a commit on branch "fancyFeature". But since .gitmodules still points to develop, I always have unattached heads (at least that's my explanation). Is there any way to change the branch of a subrepo without having a detached head?
Thanks for your help!
P.S.:If I change the .gitmodules to "fancyFeature", I do not get detached heads. That's where my conclusion comes from...