依次执行命令:

rm -f .git/index

git reset

git 出现stderr: error: bad signature fatal: index file corrupt_git