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 Team Foundation Server Permissions.

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

Concepts

Create a Workspace to Work with your Team Project

Using the Check In and Pending Changes Windows

Other Resources

Working with Version Control Locks

Change History

Date

History

Reason

October 2011

Corrected step to launch the command prompt.

Customer feedback.