Tuesday, March 8, 2011

Undo unchanged files in TFS 2010

Download the Team Foundation Server Power Tools here: http://visualstudiogallery.msdn.microsoft.com/c255a1e4-04ba-4f68-8f4e-cd473d6b971f

Then after a reboot on W7 you can use the following command from your workspace directory:
tfpt uu . /noget /recursive

Do not forget the /noget switch or else you're changes will be lost!

2 comments:

  1. how to plug this in with a right click context menu in the source control explorer?

    ReplyDelete
  2. I don't think there is a standard tool for this. I've also find out that this command only undo the untouched files, not all unmodified files.

    You can find some more info on Stack Overflow:
    http://stackoverflow.com/questions/6387557/tfs-2010-and-the-check-in-of-non-modified-files

    ReplyDelete