Git 克隆挂起 - 有没有办法继续克隆?

标签 git

有时我的 git clone 命令挂起:

git clone -v git@github.com:user/repo.git
Cloning into repo...
remote: Counting objects: 105350, done.
remote: Compressing objects: 100% (28919/28919), done.
Receiving objects:  13% (14481/105350), 6.84 MiB | 46 KiB/s

十分钟没有任何进展。

如果我停止当前进程,是否有任何方法可以使用部分克隆的存储库继续克隆?

最佳答案

截至目前(git 版本 1.7.10.4)尚不支持。

您可以 read why开发人员不同意如何实现。 2009 年和 2011 年进行了辩论,但目前为止还没有实现,因为这似乎很难。

它可以如此简单(但不幸的是它不是):

git clone --continue

众所周知:可以使用电子邮件地址 git@vger.kernel.org 将 Git 社区的问题或评论发送到邮件列表。错误报告应该发送到这个邮件列表。继续问那里再说:)

Git does not support resumable clones. That feature, it turns out, is pretty tricky to implement properly. One workaround is to download a bundle over http and then fetch the remaining bits and pieces with git. But many repository admins do not provide bundles for you to download. This service aims to fill that gap: give us the URL to a repository and we'll create a bundle which you can download through http. [ bundler.caurea.org ]

我在 qtmoko.git 上试过了,看起来很有效 quite well .另一种选择是要求上游/github 实现“git bundle”,也有 howtos ( How to use git-bundle for keeping development in sync? )。

关于Git 克隆挂起 - 有没有办法继续克隆?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12209747/

相关文章:

git - 我可以在另一台机器上使用我的 ssh key 对吗

git - 无法从 Sourcetree pull Git 远程存储库

GitHub 贡献直方图

git - 来自 git 的动态版本与 go get

linux - 获取 git 修订之间删除的文件

git - 两种 git rebase 方法之间的区别

git - 为什么 gh-pages 选项不再可用?

git - 如何获得本地 git checkout 以准确反射(reflect)已知的远程提交,仅此而已?

git - 浅 Git LFS 存储库?

Git Bash 在使用 SSH 执行推送时询问我的用户凭据