I was attempting to perform a git commit using Git Gui. I staged a few files, and then my computer suddenly shut off due to low battery. I plugged it in, turned it back on, and committed the files I wanted to. Then I ran git push
, like I've done a million times before with no issues, 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 have been caused by the computer shutting off before I could perform the first commit?
Right before all this happened, I apparently corrupted the production version of my app by running bundle install
as root on my server, and now everything on the server is messed up, but I don't see how that could affect the local version. I never did git pull
or anything like that.
Anyone encounter this error before?