• git报:OpenSSL SSL_read: Connection was reset, errno 10054错误
  • 发布于 2个月前
  • 340 热度
    1 评论
我在提交代码到github上时,系统报: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.解除SSL认证
    在 Git Bash 中输入以下命令:
    git config --global http.sslVerify "false"
    3.更新 DNS 缓存
    cmd 窗口输入
    ipconfig /flushdns
    4.文件过大,超过上限
    修改为 500MB,在 Git Bash 中输入以下命令:
    git config http.postBuffer 5242880003
    小结
    多数情况下国内访问 Github 会被…,或因网络波动问题推送失败。推荐使用 SSH 方式拉去代码或者参考 开源项目 修改本机 hosts 文件解决访问问题


  • 2022/11/28 21:35:00 [ 0 ] [ 0 ] 回复