git status shows fatal: bad object HEAD

前端 未结 14 1341
醉酒成梦
醉酒成梦 2020-12-09 00:44

I have a problem with git on Windows Azure. Git status shows - \"fatal: bad object HEAD\" and I tried running:

 git fsck --full
 git gc

But

14条回答
  •  死守一世寂寞
    2020-12-09 00:59

    This happened because by mistake I removed some core file of GIT. Try this its worked for me.

    re-initialize git

    git init
    

    fetch data from remote

    git fetch
    

    Now check all your changes and git status by

    git status
    

提交回复
热议问题