this post was submitted on 30 Apr 2026
483 points (99.4% liked)
Programmer Humor
31215 readers
754 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You don't share feature branches. So you always know precisely what is shared history: the commit you branched from.
The workflow is branch from shared history, rebase your branch as many times as necessary during development to craft a quality history, then merge back.
I rebase dozens of times a day and have never had a single issue with it.
If you're bothered by repetitive merge conflicts (which, in my experience, are quite rare if you're doing things correctly), that's what git rerere is for.
Rebasing is for crafting a quality history of your own commits (or getting your branch up to date with the trunk). Merging is for integrating your commits with the shared history.
This is what I'm saying: it depends on your workflow.
And I"m saying that doing with merges (and squashing) what should be done with rebases is bad. You can do it that way, but you shouldn't, because it makes for worse history and less usable git tools.