Chapter 13. Merging vs. rebasing
This chapter covers
- Using CMake’s branching and merging strategy to manage contributions
- Using Homebrew’s rebasing and squashing strategy to manage contributions
- Deciding what strategy to use for your project
As discussed in technique 14 and technique 43, merging and rebasing are two strategies for updating the contents of one branch based on the contents of another. Merging joins the history of two branches together with a merge commit (a commit with two parent commits); and rebasing creates new, reparented commits on top of the existing commits.
Why are there two strategies for accomplishing essentially the same task? Let’s find out by comparing the Git history of two popular open source projects and ...
Get Git in Practice 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.