gpt4 book ai didi

git - azure devops 存储库 URL

转载 作者:行者123 更新时间:2023-12-02 23:11:39 24 4
gpt4 key购买 nike

我突然遇到了 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 withsome old versions of Git Credential Manager. We plan to drop the orgprefix in the short future, once we confirm it won’t impact a largebase 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com