问题出现原因:在idea里面使用git合并分支时,电源开关被同事关了,电脑瞬间关机,导致索引文件损坏。
解决方案 1、找到项目路径 2、右键 Git Hash Here
删除index文件
重建index文件