Skip to content

The commit object

A commit points to a tree (the filesystem), a parent (the history) and an author/committer (the attribution); the hash covers all three.

graph TD
  C[Commit a1b2c3d] --> T[Tree]
  C --> P[Parent commit]
  C --> A[Author + committer]
  T --> F1[blob: file1.php]
  T --> F2[blob: file2.php]
  T --> F3[blob: file3.php]
  style C fill:#E8F5E9
  style P fill:#FFF3E0