git 中 出现your current branch appears to be broken错误

git 中 出现your current branch appears to be broken错误

1.找到最后一次的commit-id

查找 .git/logs/refs/heads/分支名, 打开这个文件找到最后一次 commit 的 commit-id

2.修复记录文件

将找的的commit-id复制到./git/refs/heads/分支名 文件中

猜你喜欢

转载自blog.csdn.net/gao_yuwushengchu/article/details/124128949