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

is a content-addressable file system used to track directory tree content (as defined by its creator Linux Torvald) It's not a version control...
Git - Blob

blob in git is a object of the blob type that corresponds / represents the file contents (or inodes) in the git file system. file This command will put a blob in the object database where: the...
Git Commit Tree Data Model
Git - Commit

A commit in git is an object that stores the information : who saved the file system snapshots, when they were saved, why they were saved. the commiter the author the parent commit It's...
Git - Database

The git core database is a key store value where a key value entry is known as an object. (All data in Git are objects) The database is mostly composed: * of tree of object * * * *...
Git - File

File management in Git (blob and not directory) blob object on the local file system or not (ie in the git file system database) See and short status A file (or blob) identifier is the...
Git - Hash (Message Digest / Hash Object / SHA1)

git uses as identifier for any object a message digest The hash is known as hash object because the whole git system is based on objects This hash is the unique key that is used in the database It's...
Git - Objects (Database)

An object is the value in the entry of the git database key-value. All entities in git are objects. Objects are the entity of the Git file system. On the operating file system, the objects are stored...
Git - Show

git show is a general command line tool that shows information object where hash is the object hash for commits it shows the log message and textual diff. It also presents the merge commit in a...
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...
Git File System
Git - Tree Object

In Git, a tree is an object that corresponds to file system directory in the git file system. A single tree object contains: one or more entries, each of which is the SHA-1 hash of a blob or subtree...



Share this page:
Follow us:
Task Runner