How to reattach a GIT detached head. $ git status HEAD detached at 36bc359 nothing to commit, working tree clean $ git branch fix-detached $ git checkout main $ git merge fix-detached -Xtheirs $ git branch -d fix-detached October 18, 2021 by thaerious GIT 0