5
Rebasing, Amend, and Cherry-Picking
If you say "rebasing" to most novice Git programmers, they burst into tears and run screaming from the room. But the truth is that this is only because of how it is explained in so many books and magazines, where rebasing is (correctly but confusingly) shown with diagrams of commits being copied and moved along with dense and technical text.
In truth, rebasing is not hard to understand, and it is not hard to do if you understand what it is for. In this chapter, we will review rebasing without fear.
Rebasing is a command that allows you to take a feature branch and place it on the tip of another branch. We'll discuss how, and more importantly why, you would do this.
Amending is a quick command that allows ...
Get Git for Programmers 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.