You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用git-tfs克隆TFVC仓库遇权限验证错误,需哪些权限?

使用git-tfs克隆TFVC仓库时的权限验证错误

执行的命令

C:\<subfolder>>git tfs clone http://<server>:8080/tfs/<collection> $/Project/SubFolder/Project
Found matching Visual Studio version at C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional
Initialized empty Git repository in C:/<subfolder>/Project/.git/

错误信息

Fetching from TFS remote 'default'...
error: a problem occurred when trying to clone the repository. Try to solve the problem described below.
In any case, after, try to continue using command `git tfs fetch`

One or more errors occurred.
Unable to get artifacts from tool.
RebuildCallersViews: Connecting Domain User could not be validated. ---> RebuildCallersViews: Connecting Domain User could not be validated. ---> RebuildCallersViews: Connecting Domain User could not be validated.
All the logs could be found in the log file: C:\Users\<username>\AppData\Local\git-tfs\git-tfs_log.txt
All the logs could be found in the log file: C:\Users\<username>\AppData\Local\git-tfs\git-tfs_log.txt

克隆TFVC仓库所需权限

执行git tfs clone操作需要以下核心权限:

  • 目标TFVC路径的读取权限:必须拥有$/Project/SubFolder/Project路径及父级路径的读取权限,这是获取仓库文件历史和内容的基础。
  • TFS项目集合的访问权限:用户需被添加到TFS项目集合的有效用户组中(如Project Collection Valid Users),确保域身份能被TFS服务器正常验证。
  • 工作区操作权限:git-tfs会创建临时工作区同步内容,需拥有创建和使用TFVC工作区的权限,该权限通常包含在基础的TFVC用户权限中。

额外排查建议:

  • 若使用域账户,确认该账户已在TFS服务器完成身份验证,且未被限制访问目标项目。
  • 若使用本地账户,执行克隆时需通过git tfs clone --username <账户名> --password <密码>手动传入有效凭证。
  • 检查本地Visual Studio能否正常连接目标TFS集合,排除客户端凭证配置问题。

内容的提问来源于stack exchange,提问作者R.J. Dunnill

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.04 14:05:17