My house just suffered a power-outage and now my git repo (which I was committing to when it happended) is reporting:
user@localhost$ git fsck
fatal: object 192e0282d23863ec80375a77011012ef8cb80f77 is corrupted
I can't commit because of this error. Pulling and fetching still seems to work fine.
user@localhost$ git commit
error: unable to find 192e0282d23863ec80375a77011012ef8cb80f77
fatal: 192e0282d23863ec80375a77011012ef8cb80f77 is not a valid object
I tried reseting it, but it didn't do anything
git reset HEAD 192e0282d23863ec80375a77011012ef8cb80f77
git gc
How do I fix this?
UPDATE: The files were still fine so I just cloned a new instance of the repo and manually moved the files over (Glad this wasn't the only repo instance!). However, I kept the broken repo so that I can try fixes posted here in case there is a next time.