How TFS is forcing the removal of the signed file

Source: Internet
Author: User

When we use TFS (Team Foundation Server) source control, source control creates a workspace on each PC, and then the workspace is imaged to the source folder on the server, and when we check in and check out normally, Our source code will operate on the server to the client's workspace.

Occasionally, however, a project team member checks out before leaving or leaves the office and joins a check-out lock, if the other members of the project group want to modify the locked file, or if the administrator of TFS wants to delete the item in source control, the following prompt is available:

The item $/Gage Management system/micms/micmsweb/login.aspx.cs is locked for check-out by H0123456:5 in Workspace CN123456.

So we can't undo checkout through the Team Explorer graphical interface. At this point, we can only do this with the TFS command: Undo to forcibly revoke a document that someone else has checked out.

1. Open the command line tool and go to the binder where TF is located:

>CD C:\Program Files\Microsoft Visual Studio 8\Common7\IDE//32-bit system
>CD C:\Program Files (x86) \microsoft Visual Studio 10.0\Common7\IDE//64-bit system

2. Find the workspace used by that person, which is usually shown in the message. The operation is as follows:

>TF Workspaces/owner:ad\h0123456/server:http://10.83.18.67:8080/tfs/si

3. View the person's pending change file:

>TF status/server:http://10.83.18.67:8080/tfs/si/workspace:*/user:ad\h0123456

4. Forcibly revoke the person's check-out:

>TF undo/workspace:cn123456; Ad\h0123456:5 $/Gage Management System/micms/micmsweb/login.aspx.cs/server:http://10.83.18.67:8080/tfs/si

Where TF is the command, Undo is the first parameter, and the other command parameters are specified as follows:

cn123456 is the computer name,
ad\h0123456 is a user domain account,
: 5 is the user number, may or may not be,
$/Gage Management System/micms/micmsweb/login.aspx.cs is the server path to the file, which can be seen from the document properties of the source code manager.
/server:http://10.83.18.67:8080/tfs/si is the address of TFS.

How TFS is forcing the removal of the signed file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.