Concept

First-parent revision syntax

Follow the first parent N times. Requires enough ancestors; does not move HEAD. A short commit ID must identify an object unambiguously.

Formal Syntax & Structure

git syntaxgit
REV~N

Working Example

Example Snippetgit
git show HEAD~1
Git Reference