This page has moved to https://ilikekillnerds.com/2014/05/01/how-to-fix-a-detached-head-on-a-git-repository/.