DEV Community

loading...

Discussion on: Git Rebase Explained Simply

Collapse
uuykay_1337 profile image
William

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

Collapse
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!