We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Trees and Blobs

Now that we understand some of our plumbing equipment, let's get into the pipes. Here are some terms to know:

  • tree: git's way of storing a directory
  • blob: git's way of storing a file

Here's what I got when I inspected my last commit:

> git cat-file -p 5ba786fcc93e8092831c01e71444b9baa2228a4f

tree 4e507fdc6d9044ccd8a4a3061324c9f711c4667d
author ThePrimeagen <[email protected]> 1705891256 -0700
committer ThePrimeagen <[email protected]> 1705891256 -0700

A: add contents.md

Notice that we can see:

  • The tree object
  • The author
  • The committer
  • The commit message

However, we cannot see the contents of the contents.md file itself! That's because the blob object stores it.

Assignment

Run and submit the CLI tests.