Code Safari

Chapter 98·Beginner

How Git Stores History: Commits, Trees, and Blobs

01 / 06

The core idea

Git stores snapshots, not changes.

Each commit records what the whole project looked like at that moment — not a list of edits. Diffs are computed later, by comparing two snapshots.

How Git Stores History: Commits, Trees, and Blobs | Code Safari