Skip to content

Where branches live

A repository is a DAG of commits; branches are pointers into that DAG; merging moves the pointer forward when histories meet.

graph TD
  C1[c1] --> C2[c2]
  C2 --> C3[c3]
  C3 --> C4[c4]
  C2 --> B1[b1 feature]
  B1 --> B2[b2 feature]
  C3 -.->|main| C4
  B2 -.->|feature| B2
  style C4 fill:#E8F5E9
  style B2 fill:#FFF3E0