
image.png
失败现象
之前下载baidu的代码时候一直报错失败,一度以为源码是个坑.
失败的现场:
Cloning into 'large-repository'...
remote: Counting objects: 20248, done.
remote: Compressing objects: 100% (10204/10204), 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
搁浅了学习进度,不过好歹找到了解决办法.
解决方案
$ git clone https://github.com/ApolloAuto/apollo.git --depth 1
$ cd apollo
$ git fetch --unshallow
$ git pull
参考
https://blog.csdn.net/u012739623/java/article/details/88963897