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

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

rm -rf .git/index
git reset HEAD .
Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐