27 July 2015

Simple reminder of how to fix a detached head in a submodule.

# git submodule update path-to-sub
# cd path-to-sub
# git status
HEAD detached at 38f1510
# git branch detached-head 38f1510
# git checkout master
# git merge detached-head
# git branch -d detached-head
Technologies:


blog comments powered by Disqus