Git - Objects (Database)
Table of Contents
About
An object is a key value entry in the git database.
All data type in git are objects.
Type
File System (Tree and Blob)
Git stores all file in its own file system.
Commit Object
The commit object 1) stores information about:
- who saved the snapshots,
- when they were saved,
- or why they were saved.
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 and its hash.
git cat-file -t 1f7a7a472abf3dd9643fd615f6da379c4acb3e3a
blob
# or
commit