When we use TFS Source control, we encounter this situation, source control will create a workspace on each client PC, and then this workspace map to the source folder on the server, when we check in, check out, our source code will be in the server to the client's workspace to operate, However, once a project team member checks out before leave or leaves the office and joins the checkout lock, if the other members of the project group want to modify the locked file, or if the administrator of TFS wants to remove the item from source control, the problem arises because we cannot pass the team Explorer graphical interface to pull out the checkout operation, only through the TFS command: Undo to take action, forcibly withdraw the files that others have checked out.
1. In the command line, enter "CD C:\Program Files\Microsoft Visual Studio 8\Common7\IDE" (TF program in folder) 2, find the workspace used by that person, operate as follows: TF workspaces/owner:mj/server:http://192.168.111.216:80803, view the person's pending changes: TF status/server:http://192.168.111.216:8080 /workspace:*/USER:MJ
4, revoke his check out (mandatory), the operation is as follows:
TF undo/workspace:mjbook (workspace name); MJ (user name) $/xxx/xxxxx/aaa.csproj (the path where the file resides)/server:http://192.168.1.200:8080 (TFS Server)
EG:TF UNDO/WORKSPACE:MJBOOK;MJ $/jy-adscs2.0/jy-adscs2.0/01 development/src/elawcounty/web/bin/ countymine.dalfactory.xml/server:http://192.168.111.216:8080
5, the end.
TFS Command Tf:undo (forced check-in of files checked out by others) (go)