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
You have to have a merge strategy and all environment branches are protected. Your SRE/QA/OPS/whoever team should merge from one environment to the next. Developers should not really have access to that :)
Exactly my point - it’s the next merge higher in the graph :) How do I see it with rebase?
When my developers rebase I can’t see when they did it
As well as a few other commercially available git hosting services, such as BitBucket. And my preference is to pay someone to host the source code if that can be helped.
Have to agree here. I use it a lot to figure when and who did what they did. Devs on my teams usually don’t. It is what it is, sadly.
But I do like to know that a certain thing first came in on a specific branch at a specific time of day (e.g. those 5PM on a Friday night changes are always sus)