File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 15
15
<li ><xref href =" release_branches.dita" /></li >
16
16
<li ><xref href =" gitflow.dita" /></li >
17
17
</ul ></p >
18
+ <section id =" section_lz3_tvy_zbc" >
19
+ <title >Re-base or merge branches?</title >
20
+ <p >In most these workflows changes are made on one branch and then integrated on other
21
+ branches. The changes can be integrated either with Git merge or with Git rebase.
22
+ This post from <xref
23
+ href=" https://www.atlassian.com/git/tutorials/merging-vs-rebasing" format =" html"
24
+ scope=" external" >Atlassian</xref > explains the differences. Oxygen's Git client
25
+ add-on supports in its <uicontrol >Git Branch Manager</uicontrol > view only the
26
+ possibility to merge a branch in another one. </p >
27
+ <p >Some highlights for each of these choices:<ul id =" ul_mdj_nwy_zbc" >
28
+ <li ><uicontrol >Git Merge</uicontrol >: Combines two branches by creating a new
29
+ commit. It keeps the history of both branches as-is.</li >
30
+ <li >
31
+ <p ><uicontrol >Git Rebase</uicontrol >: Moves the entire history of the branch
32
+ you're on to the tip of the branch you're rebasing onto. It gives a
33
+ linear commit history.<note id =" note_jd1_bxy_zbc" type =" important" >The
34
+ golden rule of <codeph >git rebase</codeph > is to never use it on
35
+ <i >public</i > branches.</note ></p >
36
+ </li >
37
+ </ul ></p >
38
+ </section >
18
39
</body >
19
40
</topic >
You can’t perform that action at this time.
0 commit comments