Git submodule detached head state [duplicate]
This question already has an answer here: Why is my GIT Submodule HEAD detached from master? 6 answers I've added 2 submodules to a project, subA and subB, in externals/subA and externals/subB. Today another team member committed his code and when it is pulled, both subA and subB show detached head status when using git status within externals/subA and externals/subB. I did git submodule update first and that reported no errors. I tried then git submodule init and git submodule update again but it did not change. How can we get the submodules back to be in sync? What causes this for the