There are at least two different ways to do this:
Command line
There is a command line utility called Tf.exe that comes with Team Explorer. Find the documentation here . You can access it by running the Visual Studio command prompt window. Command syntax:
tf undo [/workspace:workspacename[;workspaceowner]] [/server:servername] [/recursive] itemspec [/noprompt]
For one file
tf undo /workspace:workspacename;workspaceowner $/projectname/filename.cs
GUI
The second - through a graphical interface, but not standard - you need to install TFS Power Tools . See how to use this method for details.
Keep in mind that using any method, you will need the appropriate rights. The permissions are called Undo Changes by Other Users and Undo Changes by Other Users. These permissions can be viewed:
- Right-click the project, folder or file in the source explorer
- Select Properties
- Select the Security tab
- Select the appropriate user or group in the "Users and Groups" section at the top
- View the "Permissions for [user / group]:" section below
Delete workspace
tf workspace /delete WorkspaceName;User /server:http:
brett rogers Nov 06 '09 at 21:21 2009-11-06 21:21
source share