this post was submitted on 09 Nov 2023
1275 points (98.3% liked)
Programmer Humor
32495 readers
484 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
One key thing that can help you wrap your head around rebasing is that branches get switched while you're doing it; so, say you're on branch
feature
and dogit rebase master
, for any merge conflict, whatever's marked "current" will be onmaster
and what's "incoming" is fromfeature
.There's also
git rerere
that should in theory remember a resolution you do between two branches and reuse it every time after the first; I've rarely used it in practice; it would happen for long lived branches that don't get merged.