git push报错如图:
Push failed Enumerating objects: 727, done. Delta compression using up to 12 threads RPC failed; curl 18 transfer closed with outstanding read data remaining the remote end hung up unexpectedly Total 727 (delta 60), reused 0 (delta 0), pack-reused 0 the remote end hung up unexpectedly
tep1:查看git的配置
git config -l
step2:加大缓冲区大小(http.postBuffer的参数)
增大缓冲区大小。
(1)切到 git 项目目录后,执行如下命令,
// 524288000 的单位代表 B,524288000B 也就是 500MB。
// 这个值的大小,可自行酌情设置。
git config –-global http.postBuffer 524288000
git config http.postBuffer 524288000
然后查看是否设置成功,
git config –l | grep postbuffer
如果以上都不行,使用以下方法:
配置如下:
$ git config --global http.postBuffer 24288000
$ git config --list