Men*_*yus 111 git visual-studio azure-devops
所以我刚刚更新到一个新的 Visual Studio 版本,我不再能够从/向我的 azure git repo 推/拉(克隆工作正常)。
我得到的确切错误是
无法确定此“dev.azure.com”远程 URL 的组织名称。确保
credential.usehttppath设置了配置值,或将组织名称设置为远程 url '{org}@dev.azure.com' 中的用户。
并且只有 pull 命令向我显示了这个错误,所有其他命令都因 git 致命错误而失败。我弄乱了我的凭据管理器因为我怀疑它可能是导致问题的原因但没有运气..
小智 206
对我来说解决问题的是工具>选项>源代码控制> Git全局设置,在那里我更改了所有4个仍然选择为“未设置”的下拉列表:
来源:https : //docs.microsoft.com/en-us/visualstudio/ide/git-with-visual-studio?view=vs-2019#personalize-your-git-settings
Note: These are the settings my organization requires. You might have to tweak them around according to your exact issue.
Bar*_*dax 77
对我有用的与 IDE 无关的解决方案:
git config --global credential.useHttpPath true(--global参数可选)Git-Credential-Manager-for-Windows 文档

Men*_*yus 42
好吧,我刚刚git update-git-for-windows用 git bash更新了 windows的 git。然后在安装时选择了新的非弃用凭证管理器,现在它工作正常。
在 Visual Studio Code 中,您没有“工具”>“选项”>“源代码管理”>“Git 全局设置”选项
打开 GIT bash(安装时启用了适用于 Windows 的 Git Credential Manager),然后运行
git config credential.useHttpPath true
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
23124 次 |
| 最近记录: |