title: Checking out an old commit and maintaining the head on the master branch?
body: <p>Currently for switching to another git commit (on the same branch...actually, on the master branch!), I'm executing the command</p>
  
  <pre><code>git checkout ea3d5ed039edd6d4a07cc41bd09eb58edd1f2b3a
  </code></pre>
  
  <p>Now, every time I do this git tells me that I'm now with a detached head. How do I go to an older commit and still maintain the head on the same branch?</p>