博客园 首页 私信博主 显示目录 隐藏目录 管理 动画

git 报错error: bad signature 0x00000000

D:\WWW\>git pull
error: bad signature 0x00000000
fatal: index file corrupt

 

解决方案 : 

  1. 删除旧的索引文件,它路径在项目的.git/index,Linux 执行rm -f .git/index,Windows 执行del .git\index

  2. 通过reset命令重建索引:git reset

posted @ 2020-10-13 20:18  八月情  阅读(3773)  评论(0)    收藏  举报