由代理引起的Git报错解决方法

本文最后更新于 2025年8月21日星期四 06:59

因为这个解决方案用得非常多,为了方便今后使用,在自己的站点上也放一份

原文:完美解决 git 报错 “fatal: unable to access ‘https ://github.com/…/.git‘: Recv failure Connection was rese
https://blog.csdn.net/qq_43546721/article/details/139506583

取消代理设置

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

使用本地代理

端口号要根据实际更改:

  • Clash For Windows : 7890
  • Clash Verge : 7897
1
git config --global http.proxy http://127.0.0.1:7890

由代理引起的Git报错解决方法
https://zhiyun.blog/由代理引起的Git报错解决方法/
作者
Okita
发布于
2025年7月18日
许可协议