DEV Community

Discussion on: Four helpful guides for grasping the ever-elusive concept of git rebase

Collapse
 
alainvanhout profile image
Alain Van Hout

When I need to explain what git rebase is and why it's extremely useful, it usually goes something like this

Simplest way that I see to describe rebase: if you have differences that aren't on the origin branch, briefly put those aside, pull in the origin branch into your local branch, and then apply those changes that weren't on the origin branch. What this does is always apply your own changes on top of the (structure of) the origin branch, while leaving that stucture wholly intact.