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

0
0

Spring Cloud+ Vue前后端分离开发企业级在线视频系统

全网稀缺课程 市场热门项目+主流框架 一课掌握前后端技术

1743 学习 · 1697 问题

查看课程