Error: object file is empty.git / objects /../ .. is empty - fatal: lost object ... damaged

So, this is the fifth time this has happened in the last three weeks, and I doubt very much why this is happening. This is the exact message I get when I do "git status"

error: object file .git/objects/48/088f00d90b0d27de65336bb9ed9a75b0cfed33 is empty
fatal: loose object 48088f00d90b0d27de65336bb9ed9a75b0cfed33 (stored in .git/objects/48/088f00d90b0d27de65336bb9ed9a75b0cfed33) is corrupt

I tried recommendations such as deleting a damaged object, but then the same error occurs with another free object. Each time I did this, about 30 free objects that I need to delete end up, and then it still gives me an error after all the damaged objects have disappeared.

The fifth time this happened, something must be wrong with git or something related to it. I tried reinstalling git, but I still ended up with damaged objects. I use a virtual machine running Ubuntu, if this leads to something like this, I don't know. I also tried switching to Linux mint, and I also answered this problem.

In the end, I always saved the changes to a text file, deleted my repository, pulled out a fresh repository from the git hub, and then edited the changes. It works, but it is time consuming and far from ideal. I'm not necessarily looking for a way to fix this, but rather what causes it and how to prevent it from recurring.

+5
source share
1 answer

, git , . git - (VirtualBox vboxsf, , , , , , ).

core.fsyncobjectfiles - true .

0

All Articles