Git - Objects (Database)


The git core database is a key store value 1) where a key value entry is known as an object.

Object List

File System

The whole git file system is stored in this database where:

From this two objects, you can rebuild a file system tree with the content.

Commit Object

The commit object 2) stores information about:

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

Object Type

You can have Git tell you the object type (tree or blob) with the -t option:

git cat-file -t 1f7a7a472abf3dd9643fd615f6da379c4acb3e3a

Powered by ComboStrap