git - 如何恢复中止或中断的 "git clone"?

标签 git github

remote: Finding bitmap roots...
remote: Counting objects: 2369143, done.
remote: Compressing objects: 100% (497789/497789), done.
error: RPC failed; result=56, HTTP code = 20085 GiB | 249 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

我试图从 github 上克隆一个 git 仓库,但在 pull 大约 60% 后突然中止。重做这件事会很痛苦,因为它下载了大约 1.5GiB 的内容。

有没有办法从它中止的地方克隆它?

最佳答案

我也遇到了同样的问题。但这是我按下 Ctrl+c 一次。 然后我尝试了下面的方法,它对我有用。但我确实知道它的真正影响是什么。请尝试让我们知道。

放在下面你想继续的地方。

git checkout master -- .

关于git - 如何恢复中止或中断的 "git clone"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19096209/

相关文章:

git - git 如何为 4 个不同的环境分支

c# - 使用 libgit2sharp pull 特定提交

git - 如何在不提交的情况下在 git 中切换和保存?

Github 通过 x 提交显示(开发)master 后面的分支

git rm --cached 和 'deleted' 状态

node.js - 勒纳致命 : ambiguous argument 'origin/heads/origin/master...heads/origin/master' : unknown revision or path not in the working tree

git - 如何关闭 Git 警告 "LF will be replaced by CRLF"?

linux - 如何从命令行设置 ubuntu (linux) 使用 github.com 的双因素身份验证

authentication - 为嵌入式内容编辑/版本控制提供网络登录的服务

github - 将GitHub与Atlassian JIRA Studio集成与通过FishEye进行集成之间有何区别?