What is a git snapshot ?

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 File Lifecycle
What is the 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...



Share this page:
Follow us:
Task Runner