Enumerate commits reachable from HEAD.

Section: Commit and History Plumbing

List commit IDs

bash
bash
git rev-list HEAD

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Commit and History Plumbing
List commits and objects
Enumerate reachable objects.
OpenIn sheetbashsame section
Create commit from tree
Create a commit object directly.
OpenIn sheetbashsame section
Diff tree objects
Compare tree objects without porcelain diff.
OpenIn sheetbashsame section
Verify commit revision
Ensure a revision resolves to a commit.
OpenIn sheetbashsame section
Write blob object
Store file content as a blob and print its object ID.
OpenIn sheetbash1 tag match
List tracked files
Print index entries.
OpenIn sheetbash1 tag match