The Git repository at the following path is in the detached HEAD state
来源:8-7 文件上传组件的使用

慕粉1543349145
2021-01-24
The Git repository at the following path is in the detached HEAD state
不知道为什么提交的时候变成了detached head,要怎样才能恢复成主分支?
写回答
1回答
-
甲蛙
2021-01-25
正常黄色(HEAD)是跟绿色(master)一起的,你这个可以先把代码保存成一个新分支,再切回master,再把新分支merge过来
看下这篇文章:https://blog.csdn.net/weixin_42059737/article/details/92974934
00
相似问题