Hacker News new | ask | show | jobs
by siawyoung 1896 days ago
Commits are conceptually snapshots, and everything else Git does is just an optimization over the naive “keep all versions of all files ever” (imagine implementing a version of Git that is just zipping the entire folder). Diffs are isomorphic to commits and are generated as needed.

I wrote about it (albeit imprecisely) here: https://siawyoung.com/git-intuition