A commit records a snapshot and references to its parent commits. The first commit has no parent; an ordinary later commit has one. A merge commit can have more than one, so history can branch and join rather than forming a single list.
newest: soil check ----> ignore rules ----> first guide
arrows point from child to parent
In the example, each snapshot includes the tracked files selected at that point. The newest one includes .gitignore and keep.tmp even though the latest commit changed only guide.md. The parent link tells Git how the records relate; it does not mean the newest snapshot contains only the changed line.
git --no-pager log --graph --oneline --decorate -n 10
git cat-file -p HEAD
The graph is linear in this example. The printed commit object has a parent line naming the preceding commit, a tree line, identity information, and the message. cat-file -p is a lower-level inspection command; familiar commands such as status and log are often called porcelain, while lower-level commands are called plumbing. These labels describe their usual role, not a safety guarantee.
A commit ID is a content-derived hash. Git can accept an unambiguous prefix, but a fixed number of characters is not guaranteed to remain unique as a repository grows. Metadata and parent references affect the commit ID too, so your IDs will differ from anyone else’s even with the same files.
Next: Look inside a snapshot.