今天在电脑上git clone 远程仓库,出现如下错误:
git clone https://github.com/altercation/solarized
Cloning into 'solarized'...
remote: Enumerating objects: 2190, done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
google后,发现原因是远程仓库过大,而网络连接有抖动,导致连接断开的概率增大
解决方法如下:
git clone http://gith