I'm trying clone large repo code and my internet connection break at the middle of clone process. How can I resume clone process? Is there any possibility to solve this issue?
It displaying error like that :-
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Although resuming capabilities for git clone have been discussed https://www.spinics.net/lists/git/msg269766.html,
There is currently no way to resume a git clone using git, but there is a neat trick you can use instead of cloning directly -- using git bundle files. (The Linux Kernel Archives)
The bundle approach used for the linux kernel seems the best option if you have access to the repo (or know someone who does) https://www.kernel.org/cloning-linux-from-a-bundle.html
See How to complete a git clone for a big project on an unstable connection? for other possible solutions.
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