Commits are snapshots, not diffs β and why that changes everything about how you use Git.
What actually happens when you run git add, git commit, and git branch.
.git/objects/.main, Git creates a new commit and moves the main pointer forward. Creating a branch = creating a new pointer (takes milliseconds). There is no "copying" of files.git add, Git creates blobs for each file and stores them in the index β a temporary snapshot of what the next commit will contain. git commit then packages that index into a commit. Add + commit = two-step snapshot saving.git commit --amend creates a new commit.The mechanisms that make Git different from every other VCS.
HEAD β main). In detached HEAD state, it points directly to a commit hash. Used for inspecting old commits without creating a branch.git rebase does not modify existing commits. It creates new commits with the same content but different parents, then moves the branch pointer. This is why rebasing is called "rewriting history" β the old commits still exist, but the branch no longer points to them..git/ directory. It contains objects/ (all blobs, trees, commits), refs/ (branches, tags), HEAD, and config. Deleting .git/ removes all version history but leaves working files intact.origin/main). These are local copies of what the remote had last time you fetched. git fetch updates them without changing your local branches. git pull = fetch + merge.6 statements. TRUE or FALSE?
About how Git stores data:
Git stores changes (diffs) between file versions.
About branch operations:
Creating a new branch in Git takes approximately the same amount of time as copying all project files.
About Git objects:
Three types of Git objects are blobs (file contents), trees (directories), and commits (snapshots).
About commit immutability:
When you run git commit --amend, Git edits the previous commit in place.
About HEAD:
HEAD is a pointer that tells Git which commit or branch you are currently on.
About storage efficiency:
Git would be extremely inefficient storing every version of every file as a full snapshot.
From basic commits to understanding internals. Slide to see each level.
Practical commands and mental models that make Git click.