Skip to main content

What is a rebase in Git?

In Git, the rebase command integrates changes from one branch into another. It is an alternative to the better known "merge" command.

Most visibly, rebase differs from merge by rewriting the commit history in order to produce a straight, linear succession of commits.

The Git Cheat Sheet

No need to remember all those commands and parameters: get our popular "Git Cheat Sheet" - for free!

Free. We email you a ZIP with our cheat sheets.


In case you are using the Tower Git client, working with rebase is very easy: you can simply drag the branch you wish to integrate, and - while keeping the ALT key pressed - drop it onto the receiving branch.


Learn More

Free download

Download the Cheat Sheet

Get 18 of our most popular Cheat Sheets in one handy ZIP!