git使用中出现:git fatal: index file smaller than expected

git使用中出现:git fatal: index file smaller than expected

git的索引文件损坏了,删除对应的索引文件重建即可

rm -rf .git/index
git reset HEAD .

猜你喜欢

转载自blog.csdn.net/weixin_35773751/article/details/130758547