Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git克隆铬_Git_Google Chrome_Github_Chromium - Fatal编程技术网

Git克隆铬

Git克隆铬,git,google-chrome,github,chromium,Git,Google Chrome,Github,Chromium,我想下载chromium源代码,它在这里: 我想了解他们为什么说: “不要使用git clone!而是按照说明获取代码。” 使用git clone有什么问题 我试过他们的指示: 我总是在某个时候出错(我重试了5次): 我可以使用git克隆吗?请向我解释为什么他们说不要使用它。因为存储库太大了git clone比指令更容易失败。这些指令可能会包装一些git命令,以实现更小的克隆。你可以试试fetch chromium--no history。我试过了:fetch--no history

我想下载chromium源代码,它在这里:

我想了解他们为什么说:

“不要使用git clone!而是按照说明获取代码。”

使用git clone有什么问题

我试过他们的指示:

我总是在某个时候出错(我重试了5次):


我可以使用git克隆吗?请向我解释为什么他们说不要使用它。

因为存储库太大了
git clone
比指令更容易失败。这些指令可能会包装一些git命令,以实现更小的克隆。你可以试试
fetch chromium--no history
。我试过了:
fetch--no history chromium
它工作了,大小很小,只有1.15gb,正常的fetch超过20gb,我总是会出错,这个可以,非常感谢。更新:磁盘上的最终大小是20.4Gb,
fetch--no history chromium
一次成功,没有任何错误,但是正常的
fetch chromium
在不同时间的所有5次尝试中都出现了错误,这有点奇怪,但我很高兴有些东西成功了,现在我已经在本地获得了源代码。
1>error: 49528 bytes of body are still expected10.69 GiB | 824.00 KiB/s
1>fetch-pack: unexpected disconnect while reading sideband packet
1>fatal: early EOF
1>fatal: fetch-pack: invalid index-pack output