因此,我刚刚更新到新的 Visual Studio 版本,并且无法再从我的 Azure Repo 推送/pull (克隆工作正常)。我得到的确切错误是
Cannot determine the organization name for this 'dev.azure.com' remote url. ensure the
credential.usehttppath
configuration value is set, or set the organization name as the user in the remote url '{org}@dev.azure.com'.
并且只有 pull 命令显示了这个错误,所有其他命令都因 git fatal 错误而失败。我搞乱了我的凭据管理器,因为我怀疑它可能是导致问题的原因,但运气不佳。
最佳答案
对我来说解决这个问题的方法是转到“工具”>“选项”>“源代码管理”>“Git 全局设置”,在那里我更改了所有 4 个下 pull 列表,它们仍然选择为“取消设置”:
- 在获取期间修剪远程分支 - False
- pull 时对本地分支进行 rebase - False
- 加密网络提供商 - OpenSSL
- 凭据助手 - GCM Core
注意:这些是我的组织所需的设置。您可能需要根据您的具体问题对它们进行调整。
关于git - 无法确定此 'dev.azure.com' 远程 URL 的组织名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66629862/