WEEK 7 · LESSON 10 · TOPIC 7 OF 8 · Trade-Offs and Limitations

Trade-Offs and Limitations

Lesson progress

0% Complete

SECTION 1 OF 1

In this topic · 1 sections
  1. Overview

Overview

Rebase produces a cleaner linear history, but it rewrites existing commits and changes their identifiers.

When another developer has the original versions of those commits, the rebased branch no longer matches that developer's local history. Normal synchronization can then become difficult.

For that reason, rebase is presented as safe for local or personal branches where only one person is working, but risky on shared remote branches.

Merge preserves the visible fact that branches were combined. Rebase presents the work as a linear sequence. The choice is therefore not only about final file content; it is also about the history that collaborators will see and depend on.