Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git error - fatal: fetch-pack: invalid index-pack output

Tags:

git

I have encountered a strange problem.

  • When I use ssh to git clone from remote repository, it always report fatal error:

1

And there is a transient connection, but it always seems to be disconnected after 7%.

2

  • But when I change to use https to git clone from remote repository, it work fine.

3

I have google it and try some solutions to similar problems, but they do not work. I also try debug git process, but it seems that there is no useful information.

4

And it only occur when I use git clone. Once I have cloned repository to local, it work fine when I use git pull and git push.

This error really make me exhausted. I would appreciate it if someone can help me resolve this problem. Thanks a lot.

By the way, My OS info is followed:

5


Sorry, my reputation value is too low, so I cannot post image in the page.

like image 508
faraway0621 Avatar asked Nov 18 '25 12:11

faraway0621


1 Answers

I had this issue and found out if I disabled the ethernet and only used wifi the issue went away. I've suspected something is wrong with my ethernet port as it won't stay negotiated at 1Gb and always falls back to 100 Mb.

like image 95
tlab Avatar answered Nov 21 '25 02:11

tlab



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!