system-design-101 icon indicating copy to clipboard operation
system-design-101 copied to clipboard

git rebase diagram correct?

Open Bascy opened this issue 1 year ago • 1 comments

I think the git rebase diagram is not correct:

After rebasing the feature branch on master, the master branch does not change (still pointing to D), and feature branch is still pointing to G.

Commit E is now based on D in stead of B which is already correct in the diagram

Bascy avatar Oct 23 '23 10:10 Bascy

@Bascy you are right. Rebase changes "base commit" of feature branch, without merging feature branch to main branch.

macie avatar Oct 24 '23 10:10 macie