DEV Community

Discussion on: Rebase to the future!

Collapse
 
konrad_126 profile image
konrad_126

Hy David,
Yes, this happens because during rebase git re-applies the commits (from feature branch in this case), so if you have conflicts on some commit, you must resolve them before git can try to re-apply the next commit. And if you have conflicts on every commit than you'll have to do it fore every of those commits.

Your workflow helps you avoid that "multiple" conflict resolution but you lose you commits granularity since they all get squashed into a single commit.

Only one thing - checkout interactive rebase, it's a cool feature and could help you combine a message for your squashed commits.

Collapse
 
davidgf profile image
David García • Edited

Exactly, but I actually prefer to have a single commit for a feature, while I like to have the whole commit history of my branch while I'm working on it, so yeah, interactive rebase is a good choice for that :)