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

猜你喜欢

转载自blog.csdn.net/m0_37705108/article/details/83020638