All Git Object Types: Blob, Tree, Commit And Tag

The complete list of git object types is here:

  1. blob
  2. tree
  3. commit
  4. tag

Git blob object

The git “blob” type is just a bunch of bytes that could be anything, like a text file, source code, or a picture, etc.

Learn more about the git blob object.

Git tree object

A git tree is like a filesystem directory. A git tree can point to, or include:

  1. Git “blob” objects (similar to a filesystem directory includes filesystem files).
  2. Other git trees (similar to a filesystem directory can have subdirectories).

Learn more about the git tree object.

Git commit object

A git commit object includes:

  • Information about who committed (made) the change/check-in/commit. For example, it stores the name and email address.
  • A pointer to the git tree object that represents the git repository when the commit was done
  • The parent commit to this commit (so we can easily find out the situation at the previous commit).

Learn more about the git commit object.

Git tag object

A git tag object points to any git commit object.  A git tag can be used to refer to a specific tree, rather than having to
remember or use the hash of the tree.

Recent Articles

Where Do I Get Git?

Where do you get git? We have the answer to that for Linux (Ubuntu, Debian, and Red Hat), Windows, and Apple OS as well as over 30 free git tutorials.

What is the deal with the Git Index? What is the Git Index?

The git "index" is where you place files you want committed to the git repository. Learn more about the git index and git commit by selecting this link.

What Every VCS Must do

Version Control System ("VCS") need to be able to provide to its users? GitGuys explains exactly what it needs to include and provides tutorials on Git.

Visualising Branches And Their Commits

We explain and discuss the use of the git show-branch, gitg, gitk and qgit in this Tutorial. Complete with examples.

“Tracking Branches” And “Remote-Tracking Branches”

Both Tracking Branches and Remote Tracking Branches are created on the git client when a git clone command is used.

Related Stories

Leave A Reply

Please enter your comment!
Please enter your name here

Stay on op - Ge the daily news in your inbox