【发布时间】:2020-05-04 15:12:14
【问题描述】:
在 Visual Studio 2019 中尝试从 Azure Devops 克隆存储库时出现此错误:
TF401019: The Git repository with name or identifier X does not exist or you do not have permissions for the operation you are attempting.
Error encountered while cloning the remote repository: Git failed with a fatal error.
我正在使用两个帐户:
- user@domain.com
- user@seconddomain.com
user@domain.com 是我在 Visual Studio 中的主要帐户,它可以访问我的仓库,但没有权限。 user@seconddomain.com 是 Visual Studio 中的另一个帐户设置,它可以完全访问我的仓库。
当我尝试克隆 repo 时,我得到了上面的错误。在 Azure Devops 中,我注意到个人访问令牌是在我的第一个帐户中创建的,而不是在我的第二个帐户中,因此我假设它正在尝试连接错误的帐户。即使我从 Windows 凭据管理器中删除凭据并从 IE 和 Edge 清除缓存,我也从未收到 Visual Studio 的凭据要求。
有没有办法指定在 Visual Studio 2019 中克隆 Azure Devops 存储库的帐户?
----更新
克隆时,我使用 Visual Studio 中的帐户 #2 登录并在 dev.azure.com 下列出存储库
但我收到此错误:
Remote: TF401019: The Git repository with name or identifier X does not exist or you do not have permissions for the operation you are attempting.
Error encountered while cloning the remote repository: Git failed with a fatal error.
repository 'https://dev.azure.com/X' not found
【问题讨论】:
-
这个问题有什么更新吗?你解决了这个问题吗?如果没有,请告诉我有关此问题的最新信息吗?
标签: git visual-studio azure-devops git-credential-manager