我正在尝试克隆存储库并开始使用它,所以我给你录音
$ git clone https://github.com/VirtuOR/OpenTRILL
Run Code Online (Sandbox Code Playgroud)
克隆开始了
Cloning into 'OpenTRILL'...
remote: Counting objects: 46419, done.
remote: Compressing objects: 100% (42140/42140), done.
Run Code Online (Sandbox Code Playgroud)
但它以下列错误结束
error: RPC failed; result=18, HTTP code = 200MiB | 55 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Run Code Online (Sandbox Code Playgroud)
请帮忙
我知道它已经很晚了,但这是解决方案,
首先,让我们做一个部分克隆来截断下来的信息量:
git clone --depth 1 <url>
Run Code Online (Sandbox Code Playgroud)
它将使用最小的git历史记录克隆存储库.但是,使用'-depth 1'克隆不会让您将更改推送到远程仓库.现在用以下方法获取其余部分:
git fetch --depth=1000000
(Update Oct/3/2013) for git version >= 1.8.3,
git fetch --unshallow
Run Code Online (Sandbox Code Playgroud)
注意:
‘git fetch –unshallow’ is basically an alias for ‘git fetch –depth=2147483647?.
Run Code Online (Sandbox Code Playgroud)
不保证从浅克隆推出; 建议的工作流程是从浅层克隆中提交补丁(git format-patch).虽然git clone手册指出浅层克隆无法推送,但在浅层克隆和原点之间有一个共同的提交历史记录将允许浅层克隆通过.但是请注意,如果原点重新提交提交历史记录,那么浅层克隆将会遇到麻烦.(来源文章:为什么不能从一个浅层克隆推出).
但请确保问题仍然存在,因为 GitHub 今天遇到了一些问题。
查看其 GitHub 状态历史页面:
Today
6:52 UTC Everything operating normally.
6:50 UTC Some GitHub pages are again unavailable. We are continuing to investigate.
Run Code Online (Sandbox Code Playgroud)
我可以毫无问题地克隆你的存储库(刚才),但在 Windows 上,使用 git1.8.3。
检查是否可以升级 git 版本以查看问题是否仍然存在。