Under the Hood of Git

This tutorial is based on the Git Internals Chapter of the Official Git Book.

Learning Objectives

After doing this tutorial you will know how to

You will also know how to use internal git commands that do the underlying work behind the git add, git commit and git branch commands:


To do these lessons you will need to have installed


  1. Preface: Stream Redirection and Piping
  2. Preface: Hashing
  3. Git Internals: Hash Objects
  4. Git Internals: Tree Objects
  5. Git Internals: Commit Objects
  6. (optional) Git Internals: Object Storage
  7. Git Internals: Git References
  8. Git Internals: Git HEAD Reference