DEV Community


Discussion on: Git Rebase Explained Simply

uuykay_1337 profile image

To be honest I'm still confused. What is the need for rebase, if you can merge master into the working branch?

jacobherrington profile image
Jacob Herrington (he/him) Author

For one thing, merging creates a merge commit which can clutter the git history. I don't feel as strongly about that as a lot of people do, but it's the most common argument for rebasing over merging.

Personally, I prefer rebasing because of the -i flag which allows you to re-order commits, reword their messages, squash, and manipulate commits in a bunch of cool ways!