BeginnerAbout 30 min

    Git & Version Control Internals

    Read the full article on Substack

    7 min read.

    Explore Git as a directed commit graph, the staging area, rebase vs. merge, undoing changes, remote synchronization, and the underlying object model — six interactive scenes covering the Git concepts you use every day.

    Think of it this way: Think of commits like photos in a family album: each photo captures the whole scene at one moment, and a sticky arrow on the last photo is your branch pointer. Creating a new branch is just adding a second arrow — no copies made.

    Commit Graph

    Circles = commits, lines = parent links, pointers = branch tips

    HEAD → c3
    on main
    a1b2

    Initial commit

    b2c3

    Add README

    c3d4

    Add CI config

    main
    Commit (main)
    Commit (feature)
    Merge commit (2 parents)
    HEAD

    Check your understanding

    Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.

    Blob, tree or commit?

    Sort

    Sort each description into the Git object type.

    Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.

    Blob

    Drop items here

    Tree

    Drop items here

    Commit

    Drop items here
    6 pieces left to place

    Quiz

    20 questions
    Question 1 of 20
    Score: 0

    What does a Git commit actually store?

    Done with this lesson?

    Sign in free to keep your progress, streak and quiz scores.

    Keep going