git - 如何将master移动到git中的当前头部?
问题描述
目前我的头和主人如下 -
2441dc3 (HEAD) Made backend route for student attendance
2b27490 Made storage to localstorage from the classname
577bd81 (origin/master, master) Made attendace UI working though there are some errors
我现在如何让我现在的头脑成为主人?
解决方案
master
您在当前重新创建,HEAD
然后检查它:
git branch -f master
git checkout master
那给你
2441dc3 (HEAD -> master) Made backend route for student attendance
2b27490 Made storage to localstorage from the classname
577bd81 (origin/master) Made attendace UI working though there are some errors
推荐阅读
- python - 当我传递参数时,Pygame Vector2.reflect 不起作用
- javascript - 从谷歌翻译器复制时字符串包含意外字符
- java - 没有找到适合 into(Uri) 的方法
- xslt - XSLT:在空节点之间计数
- kubernetes - 如何从运行在 kubernetes 中的容器连接到 samba 服务器?
- c - 有没有办法在 C 函数中全球化变量?
- python-3.x - 我想动态更改不和谐机器人状态
- javascript - SASS 将样式应用于整个网站,尽管仅导入到单个页面中
- c# - Google 身份验证关联失败。(位置未知)
- jfr - 从 FlightRecorderMXBean 读取和解析流