git status shows fatal: bad object HEAD

前端 未结 14 1329
醉酒成梦
醉酒成梦 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条回答
  •  -上瘾入骨i
    2020-12-09 01:07

    I solved this by copying the branch data (with the errors) to my apple laptop local git folder.

    Somehow in the terminal and when running: git status, tells me more specific data where the error occurs. If you look under the errors, hopefully you see a list of folders with error. In my case GIT showed the folder which was responsible for the error. Deleting that folder and commiting the branche, I succeeded. git status was working again the other devices updating by git pull; everything working again on every machine.

    Hopefully this will work for you also.

提交回复
热议问题