OpenSSL SSL_read: Connection was reset, errno 10054

本文最后更新于 6 年前,文中所描述的信息可能已发生改变。

git报错信息

Gitpush 报错

Shell
git push -u origin main

OpenSSL SSL_read: Connection was reset, errno 10054 ...

解决方案

邮箱问题

查看用户名,邮箱

Shell
git config user.name
git config user.email

修改,用户名,邮箱

Shell
git config --global user.name "xxxx"
git config --global user.email "xxxx"

xxxx 改成对应的 用户名邮箱

移除仓库,重新添加

Shell
git remote rm origin
git remote add origin https://github.com/xxxx

解除SSL认证

cmd 窗口输入

Shell
git config --global http.sslVerify "false"

更新 DNS 缓存

cmd 窗口输入

Shell
ipconfig /flushdns

文件过大,超过上限

修改为 500MB,cmd 窗口输入

Shell
git config http.postBuffer 5242880003
使用 SSH 方式拉取代码