What problem does it solve?
Rebase solves the problem of keeping your branch history clean and up to date when the base branch has advanced, by replaying your work onto the latest base.
Core Features & Use Cases
- Linear history with upstream updates: Replays your commits onto an updated base (e.g., main) so your changes can be tested against current code.
- Conflict-aware resolution guidance: Provides steps to resolve merge conflicts deliberately and safely before continuing.
- Pre-PR hygiene: Supports interactive rebase for squashing and reordering WIP commits into a review-ready commit set, such as condensing many work-in-progress commits into fewer atomic ones for a pull request.
Quick Start
Rebase your feature branch onto the updated main branch and then force-push it safely with --force-with-lease after resolving any conflicts and running the build and tests.