简体   繁体   English

错误:尝试使用 Visual Studio 2019 社区版创建拉取请求时出现“TF200016”

[英]Error: "TF200016" when trying to create a pull request using Visual Studio 2019 community edition

When trying to create a pull request from within the VS2019 IDE, I get the error: "TF200016: The following project does not exist:"尝试从 VS2019 IDE 中创建拉取请求时,出现错误: “TF200016:以下项目不存在:”

  • The developer has full access to the Azure DevOps portal and can see all projects.开发人员可以完全访问 Azure DevOps 门户并可以查看所有项目。
  • All other Git operations work fine.所有其他 Git 操作都可以正常工作。 The developer can push a feature branch to the remote repos.开发人员可以将功能分支推送到远程存储库。
  • When the developer uses the Azure DevOps portal to create a pull request he gets the error: 404 - page not found.当开发人员使用 Azure DevOps 门户创建拉取请求时,他收到错误:404 - 找不到页面。
  • We checked the output window in VS2019 and the only odd thing appears to be the message shown below:我们检查了 VS2019 中的输出窗口,唯一奇怪的是下面显示的消息:

git: 'credential-manager-core' is not a git command. git: 'credential-manager-core' 不是 git 命令。 See 'git --help'.参见'git --help'。

No other errors show in the output window.输出窗口中没有显示其他错误。 Any information on these elusive error will be of great help.关于这些难以捉摸的错误的任何信息都会有很大帮助。

I am not sure if you are still stuck with this issue or resolved but most likely the cause would be that Azure DevOps Project would have been renamed.我不确定您是否仍然遇到此问题或已解决,但最有可能的原因是 Azure DevOps 项目已被重命名。 At least that was the case for me.至少对我来说是这样。

The solution is I set the correct git remote repo by the command as below:解决方案是我通过以下命令设置正确的 git remote repo:

git remote set-url origin {URL_you_copied_from_the_remote_repo}

Do note that you would have to go to Azure Repo and find the correct URL before you use the above command.请注意,在使用上述命令之前,您必须转到 Azure Repo 并找到正确的 URL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM