What is Git? The One-Minute Mental Model
Git is distributed version control. In practice, that means:
- You can work locally (commit, branch, diff, log) without waiting on a server.
- Every commit is a snapshot of your project at that moment.
- History is stored as content-addressed objects (Git hashes content so identical content is reused).

The workflow you’ll use daily
Most of Git is a loop:
- Edit files in your working directory.
- Stage changes with
git add. - Create a snapshot with
git commit. - Move and organize work with
git branch/git switch. - Combine work with
git mergeor re-apply it withgit rebase.
The minimum commands (copy/paste)
git init git status git add . git commit -m "Initial commit"
git diff git log --oneline --graph
Where this guide goes next
If Git clicked and you want the deeper “how collaboration really works” view, continue with: