GLOSSARY · A WORD, UNPACKED
commit
a snapshot of files plus pointers to its parent commits.
A little more detail
A commit does not store a diff as its identity. The diff is computed by comparing snapshots. A merge commit has two parents.
See it in practice
These lessons pair the idea with examples you can change and run.