git显示:fatal: index file smaller than expected git的索引文件损坏了,删除对应的索引文件重建即可rm -rf .git/indexgit reset HEAD .