Sometimes my git clone
command hangs:
git clone -v [email protected]: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
There is no progress for ten minutes.
Is there any way to continue cloning using a partially cloned repository if I stop the current process?
git clone cannot be restarted. You'll need to rm -rf common, and then restart then clone from the beginning.
The git command to retry. This should omit the actual git command (e.g., to retry git clone , use git retry clone ).
Part 3: Why Does Cloning Process Take So Long? Cloning your disk requires not only the right software but also that all your hardware and your operating system are in good condition; otherwise, this procedure will take longer than it should.
No, cloning cannot be resumed, if it's interrupted you'd need to start over. If you suspect that there's a good chance that your clone may be interrupted, look for a git bundle that you can download using a protocol that can be resumed.
If the Git is not able to clone due to weak connection, it would display a fatal error and the user is requested to try again until the above message does not appear. 8. Confirm the cloning by listing the directories once again using the ls command which lists all the files and folder.
You should make a clone of the repository at <repo> into the folder called <directory> on the local machine. Clone the repository at <repo> and clone only the ref for <tag>. The git init and git clone are usually confused with each other.
git clone --bare ¶ With the --bare argument passed to git clone, you will have a copy of the remote repo created with an excluded working directory. So, the repository will be created with the project history which can be pushed or pulled from but cannot be edited. git clone --mirror ¶
If it doesn't work, this is still not a bug with hub, but with something in your git setup or your network preventing clones via git: protocol. Make sure that command git clone git://github.com/github/hub.git works for you locally (this command skips hub entirely).
As of now (git version 1.7.10.4) this is not supported yet.
You can read why the developers disagreed on how to implement. There were debates in 2009 an 2011 but no implementation so far as this seems to be tough.
It could be so easy (but it unfortunately is not):
git clone --continue
As one knows: Questions or comments for the Git community can be sent to the mailing list by using the email address [email protected]. Bug reports should be sent to this mailing list. Just go ahead and ask there again :)
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 ]
I tried this for qtmoko.git and looks works quite well. Another option is to ask upstream/github to implement "git bundle", there are howtos (How to use git-bundle for keeping development in sync?) for this as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With