首页 > 解决方案 > 如何将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

我现在如何让我现在的头脑成为主人?

标签: gitgit-commit

解决方案


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

推荐阅读