beginnerGit Fundamentals
Snapshots vs Diffs
The Definition
Git stores complete snapshots of your project files, not just differences between versions.
Mental Model
"Most VCS store what changed (diffs). Git stores what the whole project looked like (snapshot). It's the difference between saving "I changed line 5" vs saving "Here's the entire file as it looks now"."
Visual Simulation
Live Engine
Traditional (Diffs)
Git (Snapshots)
Watch Out (Common Pitfalls)
!
Assuming Git works like other VCS that use diffs
!
Not understanding this makes Git faster for checking out old versions
!
Thinking large files take more space in each commit
Hands-on Command
shell
~ $
git show (shows a snapshot of a commit)