how to attach head to master branch code example Example: head detached at origin/master git checkout master