背景
在使用github推送文件到仓库时,使用了本地代理,容易出现此问题,控制台返回以下错误信息:
fatal: unable to access 'https://...': OpenSSL SSL_read: Connection was reset, errno 10054
解决方法:
方法1:自己配置的用户名邮箱可能输入错误了:
查看用户名,邮箱
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
方法2:移除本地代理:
git config --global --unset-all remote.origin.proxy
方法3:修改解除SSL认证
git config --global http.sslVerify "false"
方法4:文件太大,修改缓冲区大小(缓冲区大小修改为500M)
git config http.postBuffer 5242880003
方法5:更新DNS缓存
ipconfig /flushdns