...

/

The git rebase Command

The git rebase Command

Learn about git rebase and its usage.

Rebasing is an advanced and powerful technique. It’s like merging, but it doesn’t create new commits from two branches. It grabs the diffs from a branch and reapplies those diffs to the other branch.

Rebasing allows us to move a tree of snapshots into a new parent snapshot.

After the rebase, the log history looks like a single timeline.

The git rebase command in action

Suppose there’s a feature branch called dev_logic. We’re in the master ...