git推送代码到github报错error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54解决方法

  • 问题:

    error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

    fatal: the remote end hung up unexpectedly

    原因:使用https协议推送,并且存在文件过大。

  • 单个文件小于100M解决方法(网上找的试了可行记录一下哈哈哈)

    git config --global http.postBuffer 1572864000

    git config --global https.postBuffer 1572864000

    然后再次git push即可。有warning但还是可以推送上去的。

  • 1572864000是1500M,哈哈哈应该不用那么大,结果测试单个文件超过100M,还是需要git-lfs的支持。。。

    git-lfs下载地址:https://git-lfs.github.com

posted @ 2021-02-05 11:37  yongfengnice  阅读(2731)  评论(0)    收藏  举报