title: How to perform the TFS-equivalent of 'Undo pending changes'
body: <p>How do I perform the equivalent of the TFS 'Undo pending changes' in Git, on one or multiple files?</p>
  
  <p>That basically means to do these steps:</p>
  
  <ul>
  <li>Undo changes on disk</li>
  <li>Resetting any changes Git has discovered</li>
  <li>Getting the latest changes on the file from Git</li>
  </ul>
  
  <p>It would be good to know the differences (if there are any) in commands for doing this if you've <strong>(1) just changed it on disk, without adding it</strong>, but also when you've <strong>(2) done the add-command</strong> and for a bonus, <strong>(3) even when you have commit the change</strong>.</p>