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

Git Bash克隆GitHub仓库失败求助:无法解析代理http错误

解决Git克隆时的代理解析错误

嘿,我一眼就发现问题所在了——你的https.proxy配置格式有误,这直接导致Git无法正确识别代理地址。

从你提供的配置结果https//172.16.63.3:3128能看到,地址里少了一个冒号,正确的格式应该是https://172.16.63.3:3128。按照下面的步骤修复就能解决问题:

  • 首先移除错误的代理配置:
    git config --global --unset https.proxy
    
  • 然后重新设置格式正确的代理:
    git config --global https.proxy https://172.16.63.3:3128
    
  • 验证配置是否生效(此时应该返回带冒号的正确地址):
    git config --global --get https.proxy
    
  • 最后再次尝试克隆你的仓库:
    git clone https://github.com/mutende/testMyGit.git
    

如果之后还是有问题,或者你其实不需要代理访问GitHub,可以直接清空所有代理配置:

git config --global --unset http.proxy
git config --global --unset https.proxy

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.15 04:33:45