Branches and rebase

Merging and rebasing answer different questions about history. These guides explain what each operation keeps, what it rewrites, and how to tidy local commits before anyone else sees them.