git显示:fatal: index file smaller than expected

git的索引文件损坏了,删除对应的索引文件重建即可
rm -rf .git/index
git reset HEAD .
原文地址:https://www.cnblogs.com/yangxunwu1992/p/14449227.html