Git 因致命错误而失败。请求的URLreturnURL400

Git failed with the fatal error. The requested URL return URL 400

我是 azure devops 的新手。

I want to clone my repository to Visual studio 2017. When I try to clone it it throws error. please suggest on this. I am able to connect to the repository however not able to clone it.

错误是因为你的项目名称中有一个space,如果你不能重命名项目,你有2个解决方法:

第一个解决方法

  • 在 Team Explorer 中,在 Clone Repository 部分下方,请注意顶部框在 URL 中确实有 spaces。单击取消 link 取消克隆。执行此操作,因为您会发现无法编辑克隆存储库输入。
  • 单击团队资源管理器 window 的项目部分中的克隆存储库 link。

  • 您会注意到克隆存储库部分将重新出现,但现在将不可编辑。请注意,first/top 输入框已将 URL 中的任何 space 替换为 %20。确保您是第二个框,它映射本地路径以下载您的源代码,是准确的。单击“克隆”按钮,它应该会起作用。

第二种解决方法

  • 使用浏览器导航到 Azure DevOps 中的 'Code' 存储库
  • 单击 'Clone' 按钮(图标)
  • Select IDE 'Clone in Visual Studio'
  • 允许 link 打开 VS 2017,它将传递正确的 URL 编码位置

在 Team Explorer 中的 Clone Repository 部分下方,请注意顶部框 URL 中的空格。单击取消 link 取消克隆。执行此操作,因为您会发现无法编辑克隆存储库输入。 单击团队资源管理器 window 的项目部分中的克隆存储库 link。

您会注意到克隆存储库部分将重新出现,但现在将不可编辑。请注意,first/top 输入框已将 URL 中的所有空格替换为 %20。确保您是第二个框,它映射本地路径以下载您的源代码,是准确的。点击克隆按钮,它应该