Git branch 出现"HEAD detached at head xxxxx"
git branch <your-branch-name> xxxxx # 给 xxxxx 起个 branch 名
git checkout master # Head 指到 master,当然可以是其它的branch
git merge <your-branch-name> # 融合到当前 branch
git branch -d <your-branch-name> # 删除临时 branch
git branch <your-branch-name> xxxxx # 给 xxxxx 起个 branch 名
git checkout master # Head 指到 master,当然可以是其它的branch
git merge <your-branch-name> # 融合到当前 branch
git branch -d <your-branch-name> # 删除临时 branch
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。