使用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
相关产品推荐
相关产品推荐

