Skip to main content

Branches, Remotes, and Rebase

Use this page when branch history and synchronization feel mixed together.

Core Ideas

  • branches are references, not copies
  • remote-tracking branches record last known remote state
  • fetch updates remote-tracking references
  • pull fetches and integrates
  • rebase rewrites commits onto a new base

Best Local Sources