Core concepts
Git is a distributed version control system. Every clone is a full copy of the repository — no single point of failure.
Three areas of a Git project:
Working directory — files you're actively editing.
Staging area (index) — snapshot of what will go into the next commit. git add moves changes here.
Repository (.git) — permanent history of commits.
Git stores snapshots, not diffs. Each commit is a full snapshot of the project at that point. Git is efficient — unchanged files are stored as references to previous snapshots.