问题描述
9:19 上午 Push failed
Enumerating objects: 64, done.
Delta compression using up to 8 threads
Total 43 (delta 23), reused 0 (delta 0)
unable to rewind rpc post data - try increasing http.postBuffer
RPC failed; curl 56 LibreSSL SSL_read: error:1404C3FC:SSL routines:ST_OK:sslv3 alert bad record mac, errno 0
the remote end hung up unexpectedly
the remote end hung up unexpectedly
问题分析
原因:上传的文件太大,缓存不够,默认只有1M
解决方法:将缓存改为500M
另:可能是网络问题。
解决方法:科学上网(不详细赘述),或者换个网络
解决方案
将缓存改为500M
git config http.postBuffer 524288000
524288000算法:
1024*1024*500
对于curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL
git config http.sslVerify "false"
作用:忽略证书错误
点评:设置限定在指定的仓库,避免扩大该设置的适用范围而引起的潜在安全风险。