Menu Home

Git RPC faild解决方法

在git pull一个很大的库时发生了如下的错误:

  
macbookpro:Experiments sijiewang$ git pull
remote: Counting objects: 3466, done.
remote: Compressing objects: 100% (2172/2172), done.
error: RPC failed; result=56, HTTP code = 200B | 17.00 KiB/s    
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

解决方法
增加git的post缓存大小:

git config --global http.postBuffer 500000000 #增加到约500MB

Categories: git

Tagged as:

lnmcc