Rebase feature branch onto another feature branch

后端 未结 3 917
渐次进展
渐次进展 2020-11-30 16:33

I have two (private) feature branches that I\'m working on.

a -- b -- c                  <-- Master
     \\     \\
      \\     d -- e           <-- Br         


        
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-30 16:53

    I know you asked to Rebase, but I'd Cherry-Pick the commits I wanted to move from Branch2 to Branch1 instead. That way, I wouldn't need to care about when which branch was created from master, and I'd have more control over the merging.

    a -- b -- c                  <-- Master
         \     \
          \     d -- e -- f -- g <-- Branch1 (Cherry-Pick f & g)
           \
            f -- g               <-- Branch2
    

提交回复
热议问题