What is a 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) It's not a version control...
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: State Tracked Description untracked New file unmodified Tracked File is the same as in the last commit modified Tracked File...
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
What is the Git Staging area (or index)? The Proposed next commit

The staging area is a tree file called index that stores information to create the next commit. The index is like a pre-commit. The index holds a snapshot of the content of the working tree. You must...



Share this page:
Follow us:
Task Runner