Methods to force cancellation of checkout files for other members of the TFS2008 in asp.net-practical tips

Source: Internet
Author: User
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, operations as follows: TF workspaces/owner:liuxc/server:http://xxx.xxx.xxx.xxx:8080

3. View the person's pending changes: TF status/server:http://xxx.xxx.xxx.xxx:8080/workspace:*/USER:LIUXC

4, revocation of his check-out (mandatory), the operation is as follows:

TF Undo/workspace:jiaoyun (workspace name); MJ (user name) $/xxx/xxxxx/aaa.csproj (the path where the file resides)/server:http://xxx.xxx.xxx.xxx:8080 (TFS Server)

For example:

The brother is more careless, leaving a lot of project files are in the editing state, one such change too suffer, fortunately TF has such parameters

Parameters

Description

WorkspaceName

The value of the /workspace option provided by the user.

Workspaceowner

Specifies the name of the user who created the workspace.

ServerName

The value of the /server option provided by the user. Example: Teamfoundation2.

Itemspec

Identifies the file or folder from which you want to remove a pending change. For more information about how team Foundation analyzes item specifications to determine which items are within scope, see Command-Line Options.

Options

Description

/workspace

Specifies the name of the workspace in which to undo pending changes. If this option is not specified and you are running the command from a directory that has been added to the workspace, the current workspace is used.

/server

Identifies the team Foundation Server. This option is required if a directory that has never been mapped to a workspace invokes the command.

/recursive

Revoke the changes recursively according to Itemspec.

/noprompt

Suppresses the display of any prompts that require your input.

This allows you to undo all of the checked out items under the item LIUXC

PostScript: TF command is a more useful command, just do not understand why not in Team Explorer to provide such a feature, do not need to use the command line, in fact, such operations like this in the Team Explorer only need to limit the administrator has permission to operate on it, And the Team Explorer in tfs2010 does not have this function, do not know what the idea of MS

The Help for the TF command is also simple to type only the TF assist or TF MSDN

Some people on the internet also say that the direct operation of the database, so that personal feeling is more dangerous, so it is not recommended

The article refers to the following

http://blog.163.com/wangdan10799@126/blog/static/102300932010220311427/

Http://hi.baidu.com/zetz/blog/item/3acffef0d48171a5a50f520e.html

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.