make git branch the master branch

后端 未结 1 1463
无人共我
无人共我 2020-12-31 22:27

My master branch is so different than my development branch that I would like it to just become my master branch without having to do a merge, is this possible? Seems like

相关标签:
1条回答
  • 2020-12-31 23:15

    If you just have one copy of the repo, you could just delete your master branch, create a new branch from your dev branch called master, but you will have to notify others that you have changed the branch if there are other copies of the repo you don't control.

    git checkout -b dev
    git branch -D master
    git checkout -b master
    
    0 讨论(0)
提交回复
热议问题