所以我刚刚更新到一个新的Visual studio版本,我不再能够推/拉我的azure git回购(克隆工作很好)。

我得到的确切错误是

无法确定此“dev.azure.com”远程服务器的组织名称 url。确保凭证。设置Usehttppath配置值, 或者将组织名称设置为远程url中的用户 {org} @dev.azure.com。

只有拉命令显示我这个错误,所有其他失败的git致命错误。我搞砸了我的证书经理,因为我怀疑这可能是一个造成的问题,但没有运气。


当前回答

Ok, so I encountered this problem today when I updated VS2019 to 16.9.6 (from 16.8.x). I tried the recommended answer and that failed - very strangely, actually, VS refused to persist my changes to the GIT global settings (let me change them in the dialog, but fetch/push still failed, and when I looked at the settings again, they were back to "unset"). I tried another answer above, updating gcm-core, but still made no difference. In the end I removed git entirely, then reinstalled the latest version (2.31.1) - and suddenly it worked.

由于这次经历让我很沮丧,我想我应该把最后对我有用的东西贴出来,说不定它能帮助到其他人。

其他回答

Ok, so I encountered this problem today when I updated VS2019 to 16.9.6 (from 16.8.x). I tried the recommended answer and that failed - very strangely, actually, VS refused to persist my changes to the GIT global settings (let me change them in the dialog, but fetch/push still failed, and when I looked at the settings again, they were back to "unset"). I tried another answer above, updating gcm-core, but still made no difference. In the end I removed git entirely, then reinstalled the latest version (2.31.1) - and suddenly it worked.

由于这次经历让我很沮丧,我想我应该把最后对我有用的东西贴出来,说不定它能帮助到其他人。

我使用SourceTree,上面的响应对他们自己没有帮助,直到我点击SourceTree ->工具->选项-> Git -> Git版本->系统。这将SourceTree从使用嵌入式Git切换到使用系统Git。这可能会引入其他兼容性问题,但为我解决了问题,目前工作正常。

我在windows笔记本电脑上使用源代码树时也遇到了同样的问题。

有时在同一台机器上运行多个Git版本可能会产生问题。

简单开源树 选择工具- >选项- > Git

向下滚动,在“Git版本”下选择System。

这将解决问题。

嗨,我使用SourceTree并有相同的错误消息,我通过更改来解决它:

打开设置/远程,并单击编辑按钮。变化:

(公司名称)https:// .visualstudio.com/ [path-to-repo]

to

[path-to-repo] https://[公司名称]@dev.azure.com/

不可知的ide解决方案对我来说是有效的:

打开命令提示符 执行git config——global credential命令。useHttpPath true(——global参数是可选的)

Git-Credential-Manager-for-Windows文档