Friday, April 29, 2011

Undo changes in Team Foundation Server(TFS) and "Undo Pending Changes..." for users no longer with the company

How do you undo a change for a person who is no longer with the company?

In two steps you can perform this task.

1) Open Command Prompt and select an specified path
C:\Program Files\Microsoft SQL Server\90\NotificationServices\9.0.242\Bin>cd C:\
Program Files\Microsoft Visual Studio 9.0\Common7\IDE


2) Give a proper file path with tf command
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE>tf undo /workspace:WorkSpace Name;tfs User name $/file path /s:http://172.0.1.1:port

finally you will get a successful message as below.

The operation completed successfully.

No comments: