title: Why does git revert delete files on my filesystem?
body: <p>I committed a file to my local repository as a test to undo my commit I ran the command <code>git revert {hash}</code> which then logged a revert message in git's history i.e. <code>Revert "Commit of file 1" This reverts commit {hash}</code></p>
  
  <p>As soon as I ran the command <code>git revert</code> it also deleted the file from my working tree/space. </p>
  
  <ol>
  <li>Why did it delete the file?</li>
  <li>I attempted to recover the deleted file by running the command <code>git checkout {hash} -- /path/to/recovery</code>. It did recover the file however am unsure whether it was the way to go about it.</li>
  <li>If I run the command <code>git status</code> it shows me that file 1 is being tracked but is not committed. Why is that?</li>
  </ol>