|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
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.
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.