Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to resume clone git code while Internet connection is available? [duplicate]

Tags:

git

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
like image 951
Ram Avatar asked Sep 03 '25 06:09

Ram


1 Answers

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.

like image 165
airos Avatar answered Sep 04 '25 23:09

airos