title: Restore deleted file not staged in git
body: <p>I accidentally removed the entire directory of my source code...with a nice rm -r. I know, really bad; but fortunately, I had a git repo in the containing directory. Thus, git has a huge list of <strong>unstaged</strong> changes of deleted files. For example: </p>
  
  <pre><code>"deleted:   src/caronmonitor/server.py" 
  </code></pre>
  
  <p>How do I get these files back? There is advice all over the web to do:</p>
  
  <pre><code>git checkout file
  </code></pre>
  
  <p>or</p>
  
  <pre><code>git revert &lt;commit&gt;
  </code></pre>
  
  <p>But as I understand that will restore the file to it's state at the last commit. I don't want to go back to the last commit but instead go back to right before the delete operation. I can look in the gitk and see my files as they were before the delete; thus this must be possible. </p>