git clone google代码库

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

原文地址:https://www.cnblogs.com/liaokang/p/6185868.html