1. 程式人生 > >git error:error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.

git error:error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.

git push時出現如下錯誤

Counting objects: 59722, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (58835/58835), done.
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly MiB | 32.00 KiB/s
Writing objects: 100% (59722/59722), 157.57 MiB | 6.09 MiB/s, done.
Total 59722 (delta 4636), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
Everything up-to-date

這是由於git預設快取大小不足導致的,使用下面的命令增加快取大小

$ git config --global http.postBuffer 2000000000