title: How to undo local changes to a specific file
body: <p>I'm trying to undo local changes to a specific file. Nothing has been committed.</p>
  
  <p>When I want to revert all changes, I can perform <code>git revert --reset HEAD</code>. However, in this case, I don't want to revert all changes to all files.</p>
  
  <p>Its not clear or obvious to me how to revert just a file, even after reading the <code>git-revert(3)</code> man page:</p>
  
  <pre><code>NAME
         git-revert - Revert some existing commits
  
  SYNOPSIS
         git revert [--[no-]edit] [-n] [-m parent-number] [-s] &lt;commit&gt;...
         git revert --continue
         git revert --quit
         git revert --abort
  ...
  </code></pre>
  
  <p>This is similar to <a href="https://stackoverflow.com/q/27388076">How to revert a specific file in a old commit on git</a>, but no commits have been performed. And unlike OP, who wants to go back to an arbitrary commit, I just want the file to return to MASTER's copy of it.</p>
  
  <p>Under SVN, I would just delete the file in question and then perform a <code>svn update</code>.</p>
  
  <p>How do I revert changes to a single file?</p>