Git push/pull时的网络问题

本文最后更新于:4 个月前

Git提示Connection was reset, errno 10054解决方法

问题描述

准备提交代码到远程仓库的,但是突然报错10054,提示:

1
fatal: unable to access 'https://github.com/xxxxx': OpenSSL SSL_read: Connection was reset, errno 10054

或者

1
fatal: connect to github.com port 443 after 21036 ms: Timed out

解决方案

首先尝试,不过一般没用

1
2
git config --global http.sslVerify "false"

当科学上网时,修改全局代理接口,其中的端口应该为本机中的代理接口端口

1
2
git config --global http.proxy http://127.0.0.1:9999
git config --global https.proxy http://127.0.0.1:9999

排除以上问题后优化网络环境,尝试提交,然后成功了


Git push/pull时的网络问题
http://sec-cat.github.io/2023/04/27/githubconn/
作者
cat
发布于
2023年4月27日
许可协议