I tried to commit git using git Gui. I put a few files, and then the computer suddenly turned off due to a low battery. I turned it on, turned it on again, and made the files I wanted. Then I ran git push, as I already did a million times, no problem, and this time I got the following error:
Counting objects: 8, done.
error: object file .git/objects/b5/60c934f6bad40f4f246973afc0139ed91a2d32 is empty
Compressing objects: 100% (4/4), done.
error: object file .git/objects/b5/60c934f6bad40f4f246973afc0139ed91a2d32 is empty
fatal: loose object b560c934f6bad40f4f246973afc0139ed91a2d32 (stored in .git/objects/b5/60c934f6bad40f4f246973afc0139ed91a2d32) is corrupt
error: failed to push some refs to 'git@bitbucket.org:joemorano/app.git'
Could this be caused by a computer shutdown before I could execute the first commit?
Before all this happened, I apparently messed up the production version of my application by running bundle installas root on my server, and now everything on the server is corrupted, but I don’t see how this can affect the local version. I never did git pullor anything like that.
Has anyone encountered this error before?
source
share