HEAD detached at refs/heads/master in git code example Example: head detached at origin/master git checkout master