title: How do I revert one file to its original state in git?
body: <p>I have a few files I made changes to.</p>
  <p>Then I committed it and realized I made a change to a file I didn't want to change. How can I get the file back to its original state? I am on a branch.</p>
  <pre><code>git checkout --file
  </code></pre>
  <p>didn't do anything at all.</p>