访问Azure DevOps Git存储库与其他帐户无法正常工作 - E.G Work and Personal

问题描述:

我正在使用两个不同的Azure Dev Ops / VSTS帐户上的repos。为了类比,我们称之为Azure Dev Ops和Personal Azure Dev Ops帐户 - 每个都使用Git repos。

我用我的个人登录Visual Studio本身MS帐户,可以很好地克隆新的回购。

I sign into Visual Studio itself with my personal MS Account and can clone new repos just fine.

在同一台机器上,我进入管理连接并将我的工作帐户添加到服务器的下拉列表中,我看到我的工作列表Azure Dev Ops repos在团队资源管理器中 - 我可以很好地连接。

On the same machine, I go into Manage Connections and add my work account to the dropdown list of servers and I see my list of work Azure Dev Ops repos in the Team Explorer - I can connect fine.

当我想从Azure Dev Ops租户工作克隆一个repo时出现问题 - 我点击Clone并输入本地用于存储存储库的文件夹 - 然后我收到错误说

The problem comes when I want to clone a repo from the work Azure Dev Ops tenant - I click on Clone and enter the local folder to store the repository - I then get an error saying

"名称或标识符XXXX的Git存储库不存在或者您没有权限您正在尝试的操作。

"The Git repository with name or identifier XXXX does not exist or you do not have permissions for the operation you are attempting.

克隆远程存储库时遇到错误:Git因致命错误而失败。"

回购肯定存在,团队资源管理器能够连接很好。

The repo definitely exists, and Team Explorer was able to connect to it just fine.

问题似乎是Visual Studio在尝试克隆时试图使用我的个人
MS帐户凭据repo - 这似乎是错误的原因。

The issue seems to be that Visual Studio is trying to use my personal MS Account credentials when trying to clone the repo - This seems to be the cause of the error.

如果我作为团队成员将我的个人MS帐户添加到工作项目中它突然起作用,我不想要继续将我的个人帐户添加到Azure Dev Ops帐户中 - 是否有其他人能够重现这一点或知道修复方法?我在多台机器上得到
的问题。

If I add my personal MS Account to the work project as a team member it suddenly works, I don't want to have to keep adding my personal account to the work Azure Dev Ops account - Anybody else able to reproduce this or know a way to fix it? I get the issue on multiple machines.

如果我已回答你的问题,请将其标记为正确答案。如果我提供了有用的信息,请将其标记为。

If I have answered your question, please mark it as the correct answer. If I have provided helpful information, please mark it as so.

嗨Daniel Harris,

欢迎来到MSDN论坛。

根据您的信息,它与VSTS帐户问题有关。由于我们的论坛主要关注VS IDE,我建议您重定向到
开发人员社区 - Azure Devops 开始一个新线程以获得更好的支持。

Based on your info, it is related to VSTS account issue. Since our forum mainly focus on VS IDE, I recommend you redirect to developer community – Azure Devops to start a new thread for a better support.

感谢您的理解。

真诚

May