Git push 出错 [The remote end hung up unexpectedly]

one day,my teamate using git push and occured this error.

$ git push
Counting objects: 2332669, done .
Delta compression using up to 16 threads.
Compressing objects: 100% (360818 /360818 ), done .
error: RPC failed; result=22, HTTP code = 411
fatal: The remote end hung up unexpectedly
Writing objects: 100% (2332669 /2332669 ), 483.30 MiB | 114.26 MiB /s , done .
Total 2332669 (delta 1949888), reused 2330461 (delta 1949349)
fatal: The remote end hung up unexpectedly

解决办法(设置缓存):

git config http.postBuffer 524288000

参考:
http://my.oschina.net/pureboys/blog/202734?fromerr=pa8kQUqa

原文地址:https://www.cnblogs.com/wzjwffg/p/9884140.html