04
Git fundamentals

Git fundamentals

From your first commit to a clean rebase, with the model that makes both make sense.

~ 180 min·12 lessons·updated mar 2026

What you'll learn


Lessons

Read in order. Each lesson stands on its own, but the order is deliberate.

  1. 01
    What git is actually doing
    Snapshots, not diffs. The model everything else falls out of.
    12 min
  2. 02
    Commits, refs, HEAD
    Three concepts that explain 80% of confusing errors.
    14 min
  3. 03
    Branches
    What a branch really is, and why creating one is free.
    13 min
  4. 04
    Merging
    Fast-forward, three-way, and what the conflict markers mean.
    14 min
  5. 05
    Rebase
    Rewriting history safely — and the one rule you must not break.
    18 min
  6. 06
    Interactive rebase
    Squash, fixup, reword. Cleaning up before review.
    16 min
  7. 07
    Cherry-pick and revert
    Moving and undoing single commits without melodrama.
    12 min
  8. 08
    The reflog will save you
    Why almost nothing in git is truly lost.
    13 min
  9. 09
    Remotes, fetch, pull, push
    What each command actually changes. Spoiler: not what you think.
    14 min
  10. 10
    Merge conflicts, calmly
    A method, not a panic.
    17 min
  11. 11
    Bisect
    Finding the commit that broke it, in O(log n) coffees.
    13 min
  12. 12
    Hooks and aliases
    Small ergonomics that pay back daily.
    14 min

Prerequisites

  • · Have used git, even if only via a GUI
  • · Comfortable in the terminal

After this, try