Search code examples
gitgit-clone

pause git clone and resume later?


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. :(


Solution

  • 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: