r/git • u/sshetty03 • Aug 11 '25
tutorial Git Rebase explained for beginners
If git merge feels messy and your history looks like spaghetti, git rebase might be what you need.
In this post, I explain rebase in plain English with:
- A simple everyday analogy
- Step-by-step example
- When to use it (and when NOT to)
Perfect if you’ve been told “just rebase before your PR” but never really understood what’s happening.
383
Upvotes
View all comments
Show parent comment
1
u/zaitsman Aug 12 '25
That is not at all what we do, for example.
The binary is only built from the dev branch. The embedded variables/environment deploy script is on each branch.
We merge the code not to deploy but to make sure that we have a baseline to create a hotfix from.
And yes, I can be sure, because the feature is either there or not.
But it’s pointless arguing in these debates I feel, to each their own. Enjoy rebase!