版本
$ git version
git version 1.9.4.msysgit.2
今天提交本地代码到coding上的时候,出现了一个异常,导致代码无法正常push
Unable to rewind rpc post data - try increasing http.postBuffer
error RPC failed;result=56,HTTP code = 0
fatal:The remote end hung up unexpectedly
仔细看错误日志可以发现,是http提交大文件导致http postbuffer溢出,将postbuffer改大即可。
解决办法
$ git config http.postBuffer 524288000