【Github】错误解决:OpenSSL SSL_read: Connection was reset, errno 10054

git 报错信息:OpenSSL SSL_read: Connection was reset, errno 10054

Git 中 push 或者 pull 报错:

OpenSSL SSL_read: Connection was reset, errno 10054

解决方案

一、邮箱问题

查看用户名,邮箱:

git config user.name
git config user.email

修改,用户名,邮箱:

git config --global user.name "xxx"
git config --global user.email "xxx"

然后移除仓库,重新建立新得仓库:

git remote rm origin
git remote add origin https://github.com/XXX

二、解除SSL认证

Git Bash 中输入以下命令:

git config --global http.sslVerify "false"

三、文件过大,超过上限

修改为 500MB,在 Git Bash 中输入以下命令:

git config http.postBuffer 5242880003

四、总结

多数情况下国内访问 Github 会被…,或因网络波动问题推送失败。推荐使用 SSH 方式拉去代码!

我最常用的结果方法是第二种方法。

你可能感兴趣的:(Github,github,ssl,git)