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!
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
- Check out the Rebase as an Alternative to Merge chapter in our free online book
- More frequently asked questions about Git & version control
Get our popular Git Cheat Sheet for free!
You'll find the most important commands on the front and helpful best practice tips on the back. Over 100,000 developers have downloaded it to make Git a little bit easier.
About Us
As the makers of Tower, the best Git client for Mac and Windows, we help over 100,000 users in companies like Apple, Google, Amazon, Twitter, and Ebay get the most out of Git.
Just like with Tower, our mission with this platform is to help people become better professionals.
That's why we provide our guides, videos, and cheat sheets (about version control with Git and lots of other topics) for free.