VS 2019 New Pull request 你没有连接到远程仓库

VS 2019 New Pull request You are not connected to a remote repository

在 VS 2019 中,当我尝试执行“New Pull Request”时。我收到“您未连接到远程存储库”错误。 推送、拉取、合并等工作。

我正在使用 Microsoft Visual Studio Community 2019 版本 16.7.2 和 Microsoft Visual Studio Team Foundation Server 版本 16.131.28601.4

我该如何解决这个问题?可能是什么原因?

VS 2019 New Pull request You are not connected to a remote repository

这是旧版本 Visual Studio 上的一个已知问题。此问题已在版本 16.6 Preview 1.

上修复

由于您使用的是版本16.7.2,请尝试重新启动您的Visual Studio并使用管理员打开它。

此外,尝试重新连接 git 存储库并在管理连接页面上,展开 project/collection(灰色和红色图标)和 select 具有相同名称的嵌套项目(红色 git 图标),点击连接,然后正确加载 'Pull Requests' 选项卡。

查看 this thread 了解更多详情。

  1. 单击绿色 'Manage connection' 图标
  2. 点击'Manage connection'
  3. 在弹出窗口中深入查看您的存储库
  4. Select 存储库