【发布时间】:2021-06-27 16:35:57
【问题描述】:
我的项目有 2 个分支 main 和 feature1。我合并了它们,然后我尝试删除feature1 我以为命令是git checkout -d feature1,但它不是,现在它说HEAD is now at 71bgr8p (My latest commit message)。它表明我在一个分支((71bgr8p...))。当我输入git branch 时,它表示我当前所在的分支是HEAD detached at refs/heads/feature1
如何撤消此操作?
【问题讨论】:
标签: git github merge version-control branch