title: how to undo pending changes of files that are unchanged?
body: <p>One thing that drives me crazy with TFS is the fact that if you have a file checked out, but you made no changes to it, it still shows as a change, distracting you from real changes that you made. This is especially annoying when you use tools such as T4 to generate code, because most of the time the tool will generate the same code, but will leave the file checked out.</p>
  
  <p>For some reason that I can't understand, Visual Studio insists in showing those as changes, and will even claim that there are conflicts if another person happened to check-in the same "changes".</p>
  
  <p><s><a href="http://aaubry.net/undo-checkout-on-unchanged-files-tfs.html" rel="noreferrer">Fortunately, the TFS Power Tools include a command that compares checked-out files with the server version and undoes the unchanged files. I will explain how to integrate it into Visual Studio using a custom tool.</a></s></p>
  
  <p><strong>This is unfortunately not available if you are using Visual Studio 2017!</strong></p>
  
  <p>It used to be <a href="http://thesoftwarecondition.com/blog/2011/05/01/tfs-pending-changes-ignoring-files-which-are-identical-to-the-originals/" rel="noreferrer">very simple</a> to accomplish this with earlier versions of Visual Studio:</p>
  
  <pre><code>tfpt uu /noget /r *
  </code></pre>
  
  <p><strong>How do we remove files from pending changes if they do not have any changes?</strong></p>