git rev-list --all --objects
Lists all objects in all commits.
This command traverses the commit history and lists all object IDs reachable from any branch, tag, or other reference. This includes blobs (files), trees (directories of files), and commits.
The output is a list of object IDs along with their type and name, in git's internal format.
Variations may include using --no-objects
to suppress output of object IDs, or using --objects-edge
to show object IDs at the boundary of uninteresting commits.