I experienced a power failure yesterday evening while writing a commit message. When I booted the machine back up I couldn\'t complete the commit. I ran git reset
git reset
As described in this answer I ran:
git reflog expire --expire-unreachable=now --all git gc --prune=now
Which removed all of my dangling blobs and dangling commits, as well as the corrupt db objects.
It was a lot faster than tracking them down one-by-one!