Concept

Commit ancestry

A commit records parent IDs. A commit is an ancestor of another when reachable by following parent links; branch tips may diverge.

Formal Syntax & Structure

git syntaxgit
git log --graph --oneline --all

Working Example

Example Snippetgit
git log --graph --oneline --all
Git Reference