Undo Changes in Another User's Workspace

If a team member is blocked from checking in a file that is locked by someone else, you can use the tf undo command to delete Team Foundation version control pending changes in another user's workspace.

If you must also remove an exclusive lock on a file, but not the pending changes, you can use the tf lock command. For more information, see Lock Command.

If you must also delete another user's workspace, you can use the tf workspace command. For more information, see 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 Permission reference for Team Foundation Server.

To Undo the Changes in Another User's Workspace

  1. Click Start, click All Programs, click Microsoft Visual Studio 2010, point to Visual Studio Tools, and then click Visual Studio 10.0 Command Prompt.

  2. Type the following command at the command prompt 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


Create and work with workspaces

Develop code and manage pending changes

Other Resources

Work with version control locks