TLDR Web Dev · ARTICLES & TUTORIALS
DO WE THINK OF GIT COMMITS AS DIFFS, SNAPSHOTS, AND/OR HISTORIES?
Summary from the TLDR Web Dev newsletter
Most people have varied perspectives on git commits, with roughly equal numbers thinking of commits as either diffs or snapshots based on a poll. Git internally represents Git commits as snapshots and uses packfiles to store snapshots efficiently. However, no mental model is “wrong” as long as it provides a solid intuition for everyday Git usage.