Skip to Content
Git in Practice
book

Git in Practice

by Mike McQuaid
September 2014
Intermediate to advanced
272 pages
8h 27m
English
Manning Publications
Content preview from Git in Practice

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Git for Teams

Git for Teams

Emma Jane Hogbin Westby
Git Pocket Guide

Git Pocket Guide

Richard E. Silverman
Git: Mastering Version Control

Git: Mastering Version Control

Ferdinando Santacroce, Aske Olsson, Rasmus Voss, Jakub Narębski

Publisher Resources

ISBN: 9781617291975Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link