1. 程式人生 > >fatal: The remote end hung up unexpectedly解決辦法

fatal: The remote end hung up unexpectedly解決辦法

今天在將原生代碼上傳到github的時候報了這個錯

$ git push -u origin master
Counting objects: 98, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (77/77), done.
error: RPC failed; result=56, HTTP code = 20000 KiB/s
Writing objects:  43% (43/98)fatal: The remote end hung up unexpectedly
Writing objects:
100% (98/98), 12.57 MiB | 12.00 KiB/s, done. Total 98 (delta 0), reused 0 (delta 0) fatal: The remote end hung up unexpectedly Everything up-to-date

因為自己的git庫上面放了一些資料,所以整個庫較大.google了一下,發現是curl的postBuffer 預設值較小的原因,配置下個這個值,就不會出現該錯誤了.

$ git config --global http.postBuffer 2428000