commit graph

The shape Git's history really has: commits joined by parent links, which branch apart and join again at merges, never forming a loop.

In more detail

One parent gives a straight line, two parents join lines, and several branches can grow from one commit. git log --oneline --graph --all draws it as text in your terminal. Mathematically it is a directed acyclic graph.

Example

git log --oneline --graph --all

Related terms

Taught in

References