所以我刚刚更新到一个新的Visual studio版本,我不再能够推/拉我的azure git回购(克隆工作很好)。
我得到的确切错误是
无法确定此“dev.azure.com”远程服务器的组织名称 url。确保凭证。设置Usehttppath配置值, 或者将组织名称设置为远程url中的用户 {org} @dev.azure.com。
只有拉命令显示我这个错误,所有其他失败的git致命错误。我搞砸了我的证书经理,因为我怀疑这可能是一个造成的问题,但没有运气。
所以我刚刚更新到一个新的Visual studio版本,我不再能够推/拉我的azure git回购(克隆工作很好)。
我得到的确切错误是
无法确定此“dev.azure.com”远程服务器的组织名称 url。确保凭证。设置Usehttppath配置值, 或者将组织名称设置为远程url中的用户 {org} @dev.azure.com。
只有拉命令显示我这个错误,所有其他失败的git致命错误。我搞砸了我的证书经理,因为我怀疑这可能是一个造成的问题,但没有运气。
当前回答
不可知的ide解决方案对我来说是有效的:
打开命令提示符 执行git config——global credential命令。useHttpPath true(——global参数是可选的)
Git-Credential-Manager-for-Windows文档
其他回答
我刚刚用git bash更新了git for windows的git update-git-for-windows。然后在安装时选择了新的不弃用的凭据管理器,现在它工作正常。
在工具>选项>源控制> 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.
由于这次经历让我很沮丧,我想我应该把最后对我有用的东西贴出来,说不定它能帮助到其他人。
在“工具”下>“选项”下>“源控制”下>“凭据帮助”下选择“windows下的GMC”
VS一直是客户的痛苦
我使用SourceTree,上面的响应对他们自己没有帮助,直到我点击SourceTree ->工具->选项-> Git -> Git版本->系统。这将SourceTree从使用嵌入式Git切换到使用系统Git。这可能会引入其他兼容性问题,但为我解决了问题,目前工作正常。