Chapter 16. Understanding git rebase
The git rebase command is one of the most powerful commands in Git. It has the ability to rewrite your repository’s commit history, by rearranging, modifying, and even deleting commits. Trying to understand all its capabilities might take you the rest of the book. Instead, you’ll focus on the two primary reasons for using git rebase: keeping up with the repository you’ve cloned, and cleaning up your branch before you merge it.
When you clone a repository, you have a copy of that repository. But your collaborators will often add changes to the original repository. You can use git pull to refresh your clone, but if you’ve created a local branch to isolate your development, you may need to resync your branch ...
Get Learn Git in a Month of Lunches now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.