Git object

One item in Git's database, a blob, tree, commit or annotated tag, stored under the hash of its content.

In more detail

Everything Git records becomes an object in .git/objects: file contents are blobs, directory listings are trees, and snapshots with their metadata are commits. Objects are never edited in place; a change always produces a new object with a new ID. git cat-file lets you read any object by its ID.

Related terms

Taught in

References