Overview
This series teaches Git through heavily annotated, self-contained examples. Each example demonstrates a concrete Git operation with inline annotations that explain the command, its options, and the resulting state of the repository.
How This Series Is Organized
Examples are grouped by complexity:
- Beginner: Initializing a repository, staging files, committing, viewing history, and working with remotes.
- Intermediate: Branching, merging, rebasing, resolving conflicts, stashing, and tagging.
- Advanced: Interactive rebase, cherry-picking, bisect, hooks, worktrees, and submodules.
Structure of Each Example
Every example follows a consistent five-part format:
- Brief Explanation — what the operation does and why it matters (2-3 sentences)
- Mermaid Diagram — visual representation of repository state, branch topology, or workflow (when appropriate)
- Heavily Annotated Commands — shell commands with
# =>comments describing the effect and resulting state - Key Takeaway — the core insight to retain from the example (1-2 sentences)
- Why It Matters — production relevance and real-world impact (50-100 words)
Last updated