title: Hey git, what happened to the last commits?
body: <p>I just used <code>check out head</code> after making a commit.  I figured that doing this checkout would not actually do anything, but I seem to have been wrong.  It put me into a 'detached head' state.  I ignored this note, and continued to make a few additional commits.  The message change to 'Head detached from ...'  Feeling a bit annoyed by this, I looked for a way to fix it.  The answer I found was <code>git checkout master</code>.  I did this and now my last few commits disappeared.  What happened here?</p>