Moving master head to a branch

后端 未结 5 1265
刺人心
刺人心 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:20

    A regular merge of G into master will do the trick, no need to rebase:

        feature1      C-D  
                     /
        master    A-B-E            
                       \                      
        feature2        F-G
    
    git checkout master
    git merge feature2
    
        feature1              C-D  
                             /
        master, feature2  A-B-E-F-G
    

提交回复
热议问题