19 June, 2015
0 Comments
1 category
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
Tags: TFS
Category: Uncategorized