Moving master head to a branch

后端 未结 5 1271
刺人心
刺人心 2021-02-19 10:31

I have several feature branches and a master branch. Feature2 is done. Normally I would rebase (working with a remote SVN repo and would like to keep the history, so no regular

5条回答
  •  南旧
    南旧 (楼主)
    2021-02-19 11:29

    You don't have to merge the branches, a reset is enough. Assuming master is checked out:

    git reset --hard feature2
    

提交回复
热议问题