Git - Objects (Database)

Git - Objects (Database)

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





Discover More
Git - Tag

This page is tagging in git Git has the ability to tag specific points in history as being important. Typically this functionality is used to mark release points (v1.0, and so on). Git uses two main...



Share this page:
Follow us:
Task Runner