title: Why did my Git repo enter a detached HEAD state?
body: <p>I ended up with a detached head today, the same problem as described in: <a href="https://stackoverflow.com/questions/999907/git-push-says-everything-up-to-date-even-though-i-have-local-changes">git push says everything up-to-date even though I have local changes</a></p>
  
  <p>As far as I know I didn't do anything out of the ordinary, just commits and pushes from my local repo.  </p>
  
  <p>So how did I end up with a <code>detached HEAD</code>?</p>