列出来自Azure DevOps / TFVC的已检出文件

时间:2019-02-28 17:55:54

标签: tfs azure-devops

我正在尝试从Azure DevOps上托管的TFVC存储库中检出的文件列表。我是存储库的管理员。我有一个本地工作区,所有文件更改都是通过Visual Studio(2017)进行的,该文件在我更改文件时会进行正式签出。

我的计划是使用“ tf status”命令连接并查询存储库,但我无法摆脱身份验证问题。我首先尝试了此命令。

tf status /Collection:https://example.visualstudio.com/MyProject /login:me@example.com,MyPassword

它回应了错误:

TF31002: Unable to connect to this Team Foundation Server: https://example.visualstudio.com/MyProject.
Team Foundation Server Url: https://example.visualstudio.com/MyProject.

Possible reasons for failure include:
- The name, port number, or protocol for the Team Foundation Server is incorrect.
- The Team Foundation Server is offline.
- The password has expired or is incorrect.

Technical information (for administrator):
The remote server returned an error: (404) Not Found.

我尝试访问默认集合:

tf status /Collection:https://example.visualstudio.com/DefaultCollection /login:me@example.com,MyPassword

这次,错误有所不同。

TF30063: You are not authorized to access https://example.visualstudio.com/DefaultCollection.
TF30063: You are not authorized to access https://example.visualstudio.com/DefaultCollection.

如果我忽略了结尾的集合名称:

tf status /Collection:https://example.visualstudio.com /login:me@example.com,MyPassword

它返回一个相关的错误。

TF30063: You are not authorized to access example.visualstudio.com\example.
TF30063: You are not authorized to access example.visualstudio.com\example.

我在tf.exe authenticate for vsts发现了一个类似的问题,但是在那个问题中,OP正在使用现场TFS实例。我的存储库仅存储在VSTS / Azure DevOps中。

如何获取已检出文件的列表,即已修改但尚未从本地工作区检入的文件?

0 个答案:

没有答案
相关问题