Current Git branch is "(HEAD detached at)" and not "master". code example Example: head detached at origin/master git checkout master