If you want to undo some changes from a specific user, you can use:

 

Change directory to folder containing "tf.exe"
    • cd "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE"

Check the status of checked out files, to see correct "account"
    • tf status "$/TFS/Path/To/Folder/To/Search/For/Pending/Changes" /s:123.123.123.123 /u:* /recursive /format:detailed

Undo pending changes
    • tf undo /workspace:"S001";MyDomain\myUserName "$/TFS/Path/To/Folder/To/Search/For/Pending/Changes" /recursive

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.