Git has a damaged lost object that cannot be recovered.

~$ git commit .
error: inflate: data stream error (incorrect data check)
error: corrupt loose object '26f0654cde5d83f2ed8d971474d9d08a76644087'
fatal: object 26f0654cde5d83f2ed8d971474d9d08a76644087 is corrupted

The object in question does not exist, and I do it in a day or so. Since it does not indicate where this object supposedly is, I do not know what to do with it.
I think that my last one was at the 30th month of last month, so lately I have been rather uneven, but still I do not know why he is doing what he is doing now.

I tried git unpack-object -r < objectnameand it does nothing. Since the object does not exist ANYWHERE on my hdd.


The original bit is now changed:

Nome, I think I just found him. I did not understand that this literally makes 26 like / 26 / instead of myself. Apparently, the file was made on December 1st, and since I have not had an object since the last external backup, I believe that it was a few days before. What is the best way to do this?

+3
source share
2 answers

You will need to see what kind of object it is. You need to determine if it is a blob, tree, commit, or (unlikely) a signed or tagged tag. Git has low level management commands for this.

Take a look at this post .

I would recommend making a filter-branch or rebase -i -preserve-merges branch to clear the history so that all sha-1s resolve the corresponding objects.

0

Try

git stash

. , , .

+1

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


All Articles