I have an error in response to
git fsck --full
which is corrupt loose object '...'
on a git server machine.
I don't have a local repository. I can't clone. I don't have the object in repo/objects/...
Do you have any ideas on how to fix this? The object is not inside the repo.git/objects directory. I can ssh inside the server machine.
any suggestion is highly appreciated. Thanks
EDIT
I've tried with
git gc --prune
but i'm receiving the same error
error: inflate: data stream error (invalid distance code)
error: corrupt loose object '4e4c................'
fatal: object 4e4c............. is corrupted
error: failed to run repack
EDIT 2
git gc --aggressive --prune=now
gives me the same error and also
git gc --aggressive --prune=all
With
git ls-tree 4e4cc....
I have the same error
EDIT 3
I've found a local repo(of 10GB) with the last commit and I can push to the remote (of 20GB). I can also pull from that local. Why they are different in size? I still can't clone... and the obj 4e4c............. is not inside .git/objects/