Git - Snapshot

About

A git snapshot is a representation of your local file system when a commit is performed.

It's attached to each commit.

Tree

Each new snapshot (ie commit) will create a new Git tree. ie

  • the directory hierarchy
  • along side the contents of the files (git blob)

The commit and tree relationship looks like that (where the file are blob)

Git Commit Tree Data Model





Discover More
Git

is a content-addressable file system used to track directory tree content (as defined by its creator Linux Torvald) The tracking happens with...
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 Lifecycle
Git - File Status

The status of a file in a working directory is one of: where: untracked See unmodified modified staged means that the file is in the index (proposed next commit) Each file in a working...
Git - Staging area (or index) - Proposed next commit

The staging area is a tree file called index that stores information (file, directory, message, ...) the next commit. The index is like a pre-commit. The index holds a snapshot of the content of the...
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...
The .git repository

The .git metadata repository



Share this page:
Follow us:
Task Runner