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 --allRelated terms
- merge commit — A commit with two (or more) parents, recording the point where two lines of history were joined.
- parent commit — The commit that came immediately before another one, recorded by ID inside it.
- git log — The Git command that lists commits with their identifiers, authors, times and messages.
Taught in
- Installing Git, And Telling It Who You Are — Advanced Git Internals & Distributed Workflows
- Reading History: log, show And diff — Advanced Git Internals & Distributed Workflows
- A Branch Is A Moving Pointer — Advanced Git Internals & Distributed Workflows
- Merging: Fast Forward Or A Merge Commit — Advanced Git Internals & Distributed Workflows
- Rebase: The Same Work, A Different History — Advanced Git Internals & Distributed Workflows