posts-go/2020-12-23-git-objects.md

692 B

Git Objects

Git Objects are Blob Object, Tree Object, Commit Object.

All objects are stores at .git/objects with unique key (hash generated).

Blob Object is file content.

Tree Object is filename or directory.

Simple version of the Git data model

Commit Object contains top-level tree (snapshot at the time), parent commits, author and commit message.

Branch is pointer, which point to commit we want.

References