Detached HEAD 如何迁移到master分支上

Detached HEAD 如何迁移到master分支上

这个从理论上介绍了detached head的原理:

https://blog.csdn.net/u011240877/article/details/76273335

  Id CommandLine
  -- -----------
   1 git branch -v
   2 git branch  tmp
   3 git checkout tmp
   4 git checkout master
   5 git merge tmp
   6 git status
   7 git branch -d tmp

问题解决!!!

git push!!!!!!!!!

https://juejin.cn/post/7102429431133634568

posted @ 2023-01-06 15:13  bH1pJ  阅读(21)  评论(0编辑  收藏  举报