$ ./guess_the_languageGit
Git · medium · #39

What does the tree line refer to?

$ git cat-file -p HEAD
tree 211af7d72d84cb51d5e8e520961990f17fe26003
parent 4da65571a540c0ba767842862ac0a6d2ab85c811
author t <t@x> 1791735347 +0300

Add login
  1. The root directory snapshot
  2. The previous commit in history
  3. The diff introduced by this commit
  4. The branch this commit belongs to
A commit stores a full snapshot via its root tree object, not a diff. The parent line links to the previous commit.
Play Git ▸