DEV Community

Discussion on: Explain to me git rebase

Collapse
 
abhijadhavin profile image
Abhijeet Jadhav

Rebase is another way to integrate changes from one branch to another. Rebase compresses all the changes into a single “patch.” Then it integrates the patch onto the target branch. Unlike merging, rebasing flattens the history because it transfers the completed work from one branch to another.

Collapse
 
jessekphillips profile image
Jesse Phillips

Rebase does no perform any flattening, unless you tell it to.