How to: Undo Changes in Another User's Workspace
Use the tf undo command to delete Team Foundation version control pending changes in another user's workspace. This allows for you or any other team member to check in files when they are exclusively locked by someone else.
If you must also remove an exclusive lock on a file, but not the pending changes, use the tf lock command. For more information, see How to: Remove Another User's Lock.
If you must also delete another user's workspace, use the tf workspace command. For more information, see How to: Remove a Workspace.
Required Permissions
To undo pending changes in another user's workspace, you must have the Administer workspaces permission set to Allow. For more information, see Team Foundation Server Permissions.
To undo the changes in another user's workspace
Click Start, click All Programs, click Microsoft Visual Studio 2008, click Visual Studio Tools, and then click Visual Studio Command Prompt.
Type the following command and replace the arguments with the appropriate parameter information for your needs:
**tf undo /workspace:**OtherUserWorkspace;OtherUser $/TeamProject/MyFile.cs /s:http://YourTFSServer:8080
For more information, see Undo Command.
See Also
Concepts
Working with Version Control Workspaces
Using the Check In and Pending Changes Windows