参数`vc`为命令`tf`添加了什么?

问题描述 投票:0回答:1

运行tf scorch就像我期望的那样。但是,运行tf scorch /?说这个命令的语法应该是tf vc scorch。在其他地方寻找SO我发现使用了后一种语法:What does the command tf vc scorch do?

vc论证是否有任何影响/是否有任何理由包含或排除它?

tfs azure-devops tfvc
1个回答
1
投票

只需运行tf.exe /?它会告诉你:

Microsoft (R) TF - Team Foundation Version Control Tool, Version 15.127.27130.1
Copyright (c) Microsoft Corporation.  All rights reserved.

Type tf vc help for a list of supported Version Control commands.
Type tf git help for a list of supported Git commands.
Type tf settings help for a list of supported server settings commands.

因此,有许多TFVC命令,许多Git命令和几个设置命令。这些类别中的每一个都已经分享了helppermissionview命令,这些都需要消除歧义。

通过包含vcgit,您明确告诉命令行您要使用哪个子命令。为了向后兼容,一些命令会自动路由到vc,而不指定顶级微分器。

© www.soinside.com 2019 - 2024. All rights reserved.