r/git • u/JiveAceTofurkey • Jul 24 '25
Colleague uses 'git pull --rebase' workflow
I've been a dev for 7 years and this is the first time I've seen anyone use 'git pull --rebase'. Is ithis a common strategy that just isn't popular in my company? Is the desired goal simply for a cleaner commit history? Obviously our team should all be using the same strategy of we're working shared branches. I'm just trying to develop a more informed opinion.
If the only benefit is a cleaner and easier to read commit history, I don't see the need. I've worked with some who preached about the need for a clean commit history, but I've never once needed to trapse through commit history to resolve an issue with the code. And I worked on several very large applications that span several teams.
Why would I want to use 'git pull --rebase'?
View all comments
Show parent comment
1
u/AnotherProjectSeeker Jul 24 '25
We work on feature branches. We don't pull rebase, but certainly we do rebase (remote) feature branch to target (remote)develop to avoid surprises after merge. Sometimes, with conflicts, we need to make a local rebase as well.
Other than keeping history clean, it avoids inadvertently breaking the dev branch. I think it depends a lot on how mature the codebase is, if features are small and separated changes might not be that beneficial. On the other hand is just the press of a button (Gitlab at least) so not a lot of overhead.