git报错:early EOF The remote end hung up unexpectedly index-pack failed RPC failed

问题报错全部信息:

early EOF The remote end hung up unexpectedly index-pack failed RPC failed; curl 18 transfer closed 

 

参考链接:

https://stackoverflow.com/questions/21277806/fatal-early-eof-fatal-index-pack-failed

 

今天想 clone 在 github 的 hadoop工程,结果在 clone 的过程中遇到了下面的错误。
地址: https://github.com/apache/hadoop.git
git报错:early EOF The remote end hung up unexpectedly index-pack failed RPC failed_第1张图片

解决方案

https://stackoverflow.com/questions/21277806/fatal-early-eof-fatal-index-pack-failed

First, turn off compression:

git config --global core.compression 0
1
Next, let’s do a partial clone to truncate the amount of info coming down:

git clone --depth 1
1
When that works, go into the new directory and retrieve the rest of the clone:

git fetch --unshallow 
1
or, alternately,

git fetch --depth=2147483647
1
Now, do a regular pull:

git pull --all
1
I think there is a glitch with msysgit in the 1.8.x versions that exacerbates these symptoms, so another option is to try with an earlier version of git (<= 1.8.3, I think).

 

 

你可能感兴趣的:(JAVA,WEB开发)