1114
Rebase Supremacy (programming.dev)
you are viewing a single comment's thread
view the rest of the comments
[-] pineapple_pizza@lemmy.dexlit.xyz 13 points 8 months ago

This diagram seems wrong to me. Isn't the second image a squash merge? Also why would rebasing a feature branch change main?

[-] andrew@lemmy.stuart.fun 3 points 8 months ago

Yeah, the image (not mine, but the best I found quickly) kinda shows a rebase+merge as the third image. As the other commenter mentioned, the new commit in the second image is the merge commit that would include any conflict resolutions.

[-] bort@sopuli.xyz 2 points 8 months ago

why would rebasing a feature branch change main?

the image does not update the feature branch. It merges the featurebranch into main with a regular old merge-commit on the main branch.

[-] Atemu@lemmy.ml 2 points 8 months ago

The only difference between a *rebase-merge and a rebase is whether main is reset to it or not. If you kept the main branch label on D and added a feature branch label on G', that would be what @andrew@lemmy.stuart.fun meant.

this post was submitted on 04 Apr 2024
1114 points (98.1% liked)

Programmer Humor

19821 readers
535 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS