Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to restore the aborted or interrupted "git clone"?

Tags:

git

github

remote: Finding bitmap roots...
remote: Counting objects: 2369143, done.
remote: Compressing objects: 100% (497789/497789), done.
error: RPC failed; result=56, HTTP code = 20085 GiB | 249 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

I tried to clone a git repository from github, but suddenly aborted after pulling about about 60%. Redoing this will be pain because it downloaded around 1.5GiB of content.

Is there any way to clone it from the point where it aborted ?

like image 349
Arunprasad Rajkumar Avatar asked Sep 30 '13 14:09

Arunprasad Rajkumar


1 Answers

I also had the same issue. But it was once I press Ctrl+c . Then I tried with below, and it worked for me. But I done know what its real impact is. Just try and let us know.

put below where you want to resume.

git checkout master -- .
like image 155
Chand Priyankara Avatar answered Nov 03 '22 12:11

Chand Priyankara