title: How do I restore files to previous states in git?
body: <p>Given the following interaction:</p>
  
  <pre><code>$ git add foo 
  $ git commit -m "Initial import of 'foo'"
  $ rm foo # This could be any destructive action on foo, like editing it.
  </code></pre>
  
  <p>How do I restore 'foo' in my working copy? I'm looking for something like:</p>
  
  <pre><code>$ git &lt;magic&gt; foo
  Restored foo to revision &lt;blah&gt;.
  </code></pre>