暂停git clone并稍后恢复? [英] pause git clone and resume later?
问题描述
有没有办法暂停git clone并在稍后恢复?我克隆了一个非常大的回购(大约2GB),我的PC已经开启了超过40个小时。我有学校待会儿,我不想这样离开。有人有想法吗?它已经在67%btw。 :假设它是一个正常的 git clone
,我是 恐怕它们不是可恢复的,就我所知,为了增加对可恢复的 git clone
/ git fetch
的支持,一直是Google Summer of Code的一个建议项目。
一个例外是,如果您真的在做一个 git svn clone
,那么你可以通过改变目录并运行 git svn fetch
来重新启动它,但我认为这只是一个正常的git仓库克隆有关如何解决此问题的其他一些想法,您可能需要尝试以下问题的答案中的建议:
Is there a way to pause git clone and resume it later? I'm cloning a really big repo (around 2GB) and my PC's been turned on for more than 40 hours. I have school to catch later, I don't want to leave it like this. Anybody got an idea? It's already at 67% btw. :(
Assuming it's a normal git clone
, I'm afraid that they're not resumable, as far as I know. To add support for resumable git clone
/ git fetch
has been a suggested project for the Google Summer of Code in the past.
One exception is if you're actually doing a git svn clone
, then you can restart it by changing into the directory and running git svn fetch
, but I assume that this is just a normal git repository you're cloning. For some other ideas of how to work around this, you might want to try the suggestions in the answers to this question:
这篇关于暂停git clone并稍后恢复?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!