Git pull: bad object from remote but remote fsck not showing error

I have a git repository in my home directory and a copy on my external hard drive. However, when I try to pull from $HOME to the hard drive, I get

 remote: fatal: bad object afea5e5fc05d21431756099f941d776ca2d76b31 error: git upload-pack: git-pack-objects died with error. fatal: git upload-pack: aborting due to possible repository corruption on the remote side. remote: aborting due to possible repository corruption on the remote side. fatal: protocol error: bad pack header 

Returning to the repository in $ HOME, git fsck --full afea5e5fc05d21431756099f941d776ca2d76b31 does not output the result.

Where is this broken object? Thanks.

+4
source share
1 answer

A bad object with some hexadecimal number tends to mean that a ta g has an invalid reference number in it, but it can also occur for some other cases.

Check your tags and run fsck without step-1

 git fsck --full 
0
source

Source: https://habr.com/ru/post/1445470/


All Articles