You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Git for Windows执行git fetch提示credential-manager不是git命令如何解决

问题原因

Git for Windows 2.34.0属于Git凭证管理器更名的过渡版本,安装程序默认写入的全局配置项credential.helper值为credential-manager,但实际安装的凭证管理器二进制文件已更名为git-credential-manager-core,Git匹配不到对应命令就会抛出该报错。

修复步骤

  • 先执行命令全局配置正确的凭证助手:
    git config --global credential.helper manager-core
  • 验证配置是否生效,执行:
    git credential-manager-core --version
    如果正常输出版本号即配置完成,后续再执行git fetch等远程操作就不会再触发报错。
  • 如果仅当前仓库存在该问题,可能是仓库局部配置覆盖了全局规则,在仓库目录下执行:
    git config --local credential.helper manager-core

内容的提问来源于stack exchange,提问作者DrGriff

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.09.25 01:06:03