Table of Contents

About

An object is the value in the entry of the git database key-value.

All entities in git are objects.

Type

File System

Objects are the entity of the Git file system.

On the operating file system, the objects are stored at .git/objects.

Type

Commit Object

The commit object 1) stores information about:

  • who saved the snapshots,
  • when they were saved,
  • or why they were saved.

Tag

Git - Tag

Identifier

The object identifier is a sha hash

How to get the Object Type

You can have Git tell you the object type (tree or blob) with the -t option of cat-file and its hash.

git cat-file -t 1f7a7a472abf3dd9643fd615f6da379c4acb3e3a
blob
# or 
commit