Applied Logic & Computing · Live Commit DAG & Pure-C# Git Engine

Git & Version Graph Foundry

Turn Git from scary incantations into clear graph intuition across 10 foundry towers: Three-Tree staging (Working/Index/HEAD), branching & 3-way merges, stash stacks, simulated origin remotes with --force-with-lease, interactive rebase -i, cherry-pick, revert -m 1, semver tags, reflog rescue, and 16-commit git bisect.

  • Live Painter2D Commit DAG
  • Commit→Tree→Blob X-Ray
  • Interactive rebase -i Workbench
  • Reflog Rescue & 16-Commit Bisect
Practice Towers
10
Guided Floors
40
Crown Rooms
10
Verification
Live Engine

What You Will Practice

Type real commands (with Up/Down CLI history, Tab autocomplete, and Ctrl+Z undo) while watching commits, branch pointers, HEAD, and remote-tracking refs update instantaneously on a lapis-and-gold Painter2D Commit DAG.

Toggle SHOW GOAL to compare your target graph topology or flip on OBJECTS X-Ray to inspect the exact commit → tree → blob hashes under the hood.

  • Three-Tree model (Working/Index/HEAD), add, restore, amend, and soft/mixed/hard reset
  • Branching, LCA 3-way merges, --no-ff, --squash, conflict resolution, and stash stacks
  • Simulated origin remotes: fetch, pull --rebase, push, and --force-with-lease safety
  • Interactive rebase -i, rebase --onto, range cherry-pick, revert -m 1, reflog, and git bisect

Course Curriculum (10 Towers · 40 Interactive Floors)

  1. Tower 1

    Tower 1 · The Three Trees & Snapshots

    Master Git's core three-tree mental model: Working Tree, Staging Index, and HEAD commit snapshots.

    1. Working Tree → Index → HEAD
    2. Selective Staging & Restore
    3. Amending the Tip Commit
    4. Soft, Mixed & Hard Reset
  2. Tower 2

    Tower 2 · Branches, HEAD & Fast-Forward

    See branches as cheap 41-byte pointers, master fast-forward merges, relative refs, and detached HEAD.

    1. Commits & Moving HEAD
    2. Branching with git switch -c
    3. Fast-Forward Merge
    4. Relative Refs & Detached HEAD
  3. Tower 3

    Tower 3 · 3-Way Merges & Conflicts

    Unite diverged histories with true 3-way LCA merges, calm conflict resolution, --no-ff & --squash strategies, and safe aborts.

    1. True 3-Way LCA Auto-Merge
    2. Interactive Merge Conflict
    3. Squash & No-FF Merge Strategies
    4. Safe Abort Under Conflict
  4. Tower 4

    Tower 4 · Stashing & Context Switching

    Master interruption-proof workflows with git stash push, list, pop, apply, drop, conflict resolution, and stash branch.

    1. Emergency Interrupt Stash
    2. Named Multi-Stash Stack
    3. Stash Pop Conflict
    4. Zero-Conflict git stash branch
  5. Tower 5

    Tower 5 · Linear Rebase & Cherry-Pick

    Craft clean linear histories with git rebase, range cherry-picks, mid-rebase conflict recovery, and branch -f pointer surgery.

    1. Linear git rebase main
    2. Surgical Cherry-Pick & Ranges
    3. Mid-Rebase Conflict & --continue
    4. Branch Pointer Surgery (branch -f)
  6. Tower 6

    Tower 6 · Interactive Rebase & Surgery

    Polish commit history before code review with rebase -i (pick, reword, squash, fixup, drop, reorder) and rebase --onto transplants.

    1. Squash & Fixup WIP Commits
    2. Drop Debug & Reword Title
    3. Reorder Independent Commits
    4. Transplant with git rebase --onto
  7. Tower 7

    Tower 7 · Remotes, Fetch, Pull & Push

    Master origin/* remote-tracking pointers, fetch vs. pull --rebase, publishing branches, and non-fast-forward rejection.

    1. Understanding git fetch & origin/main
    2. git pull --rebase vs Merge Pull
    3. Publish & Prune Remote Branches
    4. Non-Fast-Forward Push Rejection
  8. Tower 8

    Tower 8 · Collaborative PRs & Force-With-Lease

    Update rebased pull requests safely, protect teammates' commits with --force-with-lease, and maintain stacked PR chains.

    1. Rebasing a Live PR Safely
    2. The --force-with-lease Safety Net
    3. Updating a Stacked PR Chain
    4. Syncing a Long-Lived Feature Branch
  9. Tower 9

    Tower 9 · Tags, Releases & Workflows

    Stamp immutable annotated semver releases, backport hotfixes to release branches, and safely revert merged PRs with revert -m 1.

    1. Annotated Semver Tags & Describe
    2. Cutting a Release Line
    3. Security Hotfix Backport
    4. Reverting a Broken Merge (-m 1)
  10. Tower 10

    Tower 10 · Rescue Ops, Bisect & Internals

    Master safe shared reverts, reflog time-travel, O(log n) git bisect across 16 commits, and content-addressed object-graph X-Ray.

    1. Safe Shared Revert vs Reset
    2. Reflog Time-Travel Rescue
    3. O(log n) Git Bisect (16 Commits)
    4. Object Graph X-Ray & Detached Rescue

Deterministic Verification & Crown Payoff

Pure-C# Git Graph, Content-Tree & Ref Topology Verification

Runs a full pure-C# Git engine verifying exact commit DAG topology, file-tree contents, branch/tag/remote refs, merge bases, and bisect culprit identification.

Supported inputs: Live Git CLI (Tab Autocomplete + History) · Commit DAG · Three-Tree Ledger

Crown Room payoff: Untangle diverged histories, recover dropped commits from reflog, and pinpoint regressions via git bisect across 10 Foundry Crown drills.

Practice Git & Version Graphs Inside Nousfarer

Land directly on the Git & Version Graph Foundry planet inside Nousfarer to climb all 10 interactive towers right in your browser.

Frequently Asked Questions

How does Git & Version Graphs verify my work?

Runs a full pure-C# Git engine verifying exact commit DAG topology, file-tree contents, branch/tag/remote refs, merge bases, and bisect culprit identification. Every floor runs deterministically in your browser with immediate feedback — no video pausing or guesswork.

How much content is included in Git & Version Graphs?

The planet spans 10 progressively richer towers (40 guided floors plus 10 Crown Room capstones), paired with Ship Owl spaced-repetition recall whenever you want to sharpen a tricky concept.

What equipment or setup do I need to play Git & Version Graphs?

Everything runs directly inside your browser inside Nousfarer with zero plugins required. Supported inputs: Live Git CLI (Tab Autocomplete + History) · Commit DAG · Three-Tree Ledger.