Commit Object Anatomy
Record ModelA commit is not "the changes only." It is a complete photograph of the project state plus pointers and metadata.
Core Git 1/8
Git is a database. The fundamental unit is a commit record: a full snapshot of your project at one moment in time.
Back to Git Concepts overviewA commit is not "the changes only." It is a complete photograph of the project state plus pointers and metadata.
Every commit points to older commit(s), except the first commit which has no parent. A commit can also have two parents (merge commit), which is explained later. Git traverses history by following parent pointers backward.
Because each commit stores a complete snapshot, Git can instantly restore the repository files exactly as they looked at that point in time. Here, `HEAD` and version tags are shown as a preview only; both are explained later in the learning path. The key idea for now is that moving to a saved point in history updates the files to that snapshot immediately.