Git - Push Error The remote end hung up unexpectedly

Posted on 2015-06-30

問題

今天在 git 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

原因

上傳的檔案過大造成錯誤

解法

加大 Git 的 postBuffer,後面的數字是自己決定的大小,以下面來看是 50M

git config --global http.postBuffer 524288000

參考連結