git - azure devops 存储库 URL

标签 git visual-studio azure azure-devops azure-repos

我突然遇到了 Azure 存储库 URL 的问题:

我刚刚开始一个在 DevOps 中创建的新项目,它希望我使用的 url 是

https://[email protected]/OrgName/RepoName/_git/RepoName

而且总是失败(在循环中要求提供凭据),如果我在 VS Code 中单击“克隆”,情况是一样的。

然而,在我的组织中,几年前用 devops 创建的,它给我的 GIT url 是这样的。

https://dev.azure.com/Test/_git/Test

如果我从 devops url 中删除 OrgName@,它会很好地克隆存储库,那么为什么 devops 添加它以及我们如何才能使其在 url 中使用它或停止 devops 在 git 存储库的 URL 中提供它?

最佳答案

查看this ticket中产品组的回复:

This cannot be fixed at this time due to backwards compatibility with some old versions of Git Credential Manager. We plan to drop the org prefix in the short future, once we confirm it won’t impact a large base of users. Please understand that this is a priority for us, although it cannot be taking at this time yet.

我们的产品组已关注此问题,并计划在未来删除organization@前缀。

解决方法:

方法一,正如你所说,你可以手动删除git克隆URL中的organization@

方法 2. 您可以在组织设置 -> 概述中禁用新 URL

enter image description here

然后您可以使用旧 URL organizationname.visualstuido.com 登录组织。

在这种情况下,git 克隆 url 将不包含 organization@

enter image description here

关于git - azure devops 存储库 URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63111209/

相关文章:

git - 构建包含多个 git 存储库的 eclipse 项目

javascript - git log命令逻辑解释 git log master-1.0.83..HEAD

c# - 无法将文件从 obj\Debug 复制到 bin\Debug

Azure - 使用托管标识对 KeyVault 和其他资源的 AKS 进行身份验证

git - 如何从特定提交继续项目并修复 HEAD 分离问题?

node.js - 以 sudo 身份运行 npm install 时 Git 身份验证失败

wpf - Visual Studio 2010 中的 prism 项目链接器发生了什么变化?

c++ - Visual Studio C++ - 缺少 "Copy to Output Directory"

azure - 无法从 Dynamics 365 Customer Insights 平台接收正确的预测数据

azure - 分配 azure VM 公共(public) IP (PIP) 后,它不会在门户中更新