暂停git clone并稍后恢复? [英] pause git clone and resume later?

查看:1484
本文介绍了暂停git clone并稍后恢复?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法暂停git clone并在稍后恢复?我克隆了一个非常大的回购(大约2GB),我的PC已经开启了超过40个小时。我有学校待会儿,我不想这样离开。有人有想法吗?它已经在67%btw。 :假设它是一个正常的 git clone ,我是 恐怕它们不是可恢复的,就我所知,为了增加对可恢复的 git clone / git fetch 的支持,一直是Google Summer of Code的一个建议项目。



一个例外是,如果您真的在做一个 git svn clone ,那么你可以通过改变目录并运行 git svn fetch 来重新启动它,但我认为这只是一个正常的git仓库克隆有关如何解决此问题的其他一些想法,您可能需要尝试以下问题的答案中的建议:


  • < a href =https://stackoverflow.com/q/3954852/223092>如何在一个不稳定的连接上完成一个大项目的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆