title: Git: how to checkout to commit created from another commit?
body: <p>I cloned a repo. </p>
  
  <p>I checked out to commit <code>foo</code> of the past. </p>
  
  <p>I made my changes and committed them -- call the new commit<code>bar</code> .</p>
  
  <p>I checkout to master.</p>
  
  <p>I now realize I want to go back to <code>bar</code>. I don't see it anywhere in the history (rightly so) -- is my commit completely lost?</p>