https://stackoverflow.com/questions/33012869/broken-branch-in-git-fatal-your-current-branch-appears-to-be-broken
5
|
I meet similar issue on Windows 7. In my case,the current branch file (refer by
./git/HEAD) under \.git\refs\heads was broken.
I found the hash code of broken current branch on
.git\logs\refs\heads with same branch name.
And I fixed the issue by opening that file (
.git\logs\refs\heads\xxx) via notepad and copy the 4th number (the hash code) to (.git\refs\heads\xxx)
【popexizhi: 查了一下,自己也是相同的问题,重新拷贝一下对应的文件就ok了】
|
没有评论:
发表评论