gpt4 book ai didi

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

转载 作者:IT王子 更新时间:2023-10-29 00:43:30 29 4
gpt4 key购买 nike

有时我的 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/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com