情景描述:
在提交代码的时候,电脑突然罢工,没办法,只能重启,谁知,再次Git提交代码时,出现了 “error: bad signature 0x00000000 fatal: index file corrupt”这样的问题,第一次碰到,上网搜了一下,成功处理,这里记录一下!
解决方案:
rm -f .git/index
git reset
解决示例:
nangongyi@DESKTOP-AH5BRMM MINGW64 /d/web/html/wwsl (ad_rel_dev)
$ git status .
error: bad signature 0x00000000
fatal: index file corrupt
nangongyi@DESKTOP-AH5BRMM MINGW64 /d/web/html/wwsl (ad_rel_dev)
$
nangongyi@DESKTOP-AH5BRMM MINGW64 /d/web/html/wwsl (ad_rel_dev)
$ rm -f .git/index
nangongyi@DESKTOP-AH5BRMM MINGW64 /d/web/html/wwsl (ad_rel_dev)
$ git reset
Unstaged changes after reset:
M app/Http/Controllers/Admin/TableManageController.php<