首页 > 技术文章 > git clone google代码库

liaokang 2016-12-16 10:20 原文

git clone  https://chromium.googlesource.com/chromium/src

发现有将近7G,但是速度太慢,老是失败,提示信息先后是“The remote end hung up unexpectedly”、“early EOF”、“index-packed failed”。

就算没有失败,但是有时候需要关电脑。

每次重新git fetch后,在.git/objects/pack中,都生成一个新的类似tmp_pack_LJ7iab文件。

修改命令为

git clone --depth=1 https://chromium.googlesource.com/chromium/src

参考

http://blog.csdn.net/alien75/article/details/38921397

推荐阅读