Git报错:You are in ‘detached HEAD‘ state, which means that you‘re not on any branch

如图:

 

 

解决办法

1.创建新的分支:git branch   XXXX
2.切换到你的工作分支:git checkout  XXXX
3.合并代码:git merget    XXXX

  

posted on 2022-06-14 11:57  巫山老妖  阅读(968)  评论(0编辑  收藏  举报