Git: failed to read object … Invalid argument
问题 I had this git message after a forced VM shutdown, which obviously corrupted the git index Git: Failed to read object abcdef.... Invalid argument I looked at these existing answers Restore a corrupted index Recover damaged git by HD failure None seemed to work. 回答1: Using @Arindam's answer above didn't work for me, but a variation of it did, I hope someone else finds it useful: At this point you're in GIT limbo. You can't checkout a new branch with the state of the current branch, likely