tree object

The Git object that lists one directory: each entry's name, file mode and the ID of the blob or sub-tree it points at.

In more detail

A commit points at exactly one tree, the root folder of the project, and that tree points at everything below it. Together they are the whole snapshot. Two commits with identical files have the same tree ID even if everything else about them differs.

Example

git cat-file -p 'HEAD^{tree}'

Related terms

Taught in

References