Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Why does rebase have a link to original branch?

andrewducker
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 1, 2018

If I have a branch, and rebase that branch on master, then it correctly produces a new set of commits following on from the tip of master.  But it also has a "merge commit" which links back to the original branch.

Why is that merge commit necessary?  Why not just have the new set of commits, rather than keeping the old ones around?

1 answer

0 votes
Manju
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 1, 2018

Here is some info on merge vs rebase which might be of help - https://www.atlassian.com/git/tutorials/merging-vs-rebasing

And the official rebase documentation of git - https://git-scm.com/book/en/v2/Git-Branching-Rebasing

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events