Skip to main content

Interactive course

Git & Modern Collaboration

Learn Git from first principles inside a deterministic commit graph simulator: master the four areas, branching, 3-way merges, conflict resolution, safe history rewriting, remotes, reflog rescue and bisect.

01 · Fundamentals & The Four Areas

5 lessons

Why Git stores snapshots, how Working Tree, Staging Area and Repository interact, and how commits become immutable nodes.

  1. 1.1Why Git stores snapshots, not diffsUnderstand content-addressed blobs, trees, commits and the four areas of a Git workflow.~15 min
  2. 1.2Initializing repositories & staging changesUse git init, git status and git add to promote workspace edits into the Staging Index.~16 min
  3. 1.3Atomic commits & writing meaningful historyGroup logical changes cleanly with selective staging and write informative commit messages.~16 min
  4. 1.4.gitignore rules & untracking leaked filesShield build artifacts and secrets with .gitignore and untrack leaked files using git rm --cached.~16 min
  5. 1.5Deleting & renaming tracked files safelyMove and remove versioned paths cleanly with git mv and git rm while preserving snapshot history.~15 min

02 · History Inspection, Diffs & Time Travel

4 lessons

Read commit DAGs fluently, compare Working Tree vs Index vs HEAD, inspect line authorship, and navigate Detached HEAD and tags.

  1. 2.1Reading history with git log & filtering commitsNavigate commit history with --oneline, graph topology, parent modifiers (~ and ^) and filters.~15 min
  2. 2.2Inspecting diffs: Working Tree vs Index vs CommitsDistinguish unstaged edits from staged snapshots using git diff and git diff --staged.~16 min
  3. 2.3Inspecting snapshots & authorship (git show, git blame)Audit any commit snapshot with git show and trace the origin of every line with git blame.~15 min
  4. 2.4Time travel, Detached HEAD rescue & release tagsCheck out past commits safely, rescue accidental detached work onto a branch, and create annotated tags.~17 min

03 · Branches as Lightweight Pointers

4 lessons

Understand why Git branches are cheap, mutable pointers and build fearless parallel development habits.

  1. 3.1Branches as mutable pointers to commitsSee how HEAD, branch refs and commits relate inside the object database without copying directories.~15 min
  2. 3.2Creating & switching branches cleanly with git switchCreate isolated feature branches, switch contexts cleanly and inspect live divergence in the DAG.~16 min
  3. 3.3Branch naming, renaming & safe cleanupAdopt clear branch naming conventions, rename refs with -m and distinguish safe -d from force -D.~16 min
  4. 3.4Parallel tracks & diverged feature workSimulate two developers advancing independent branches from a shared ancestor before integration.~16 min

04 · Merging & Conflict Resolution

4 lessons

Integrate branches confidently using Fast-Forward, explicit 2-parent merge commits, 3-way conflict resolution and PR squash.

  1. 4.1Fast-forward merges vs --no-ff feature bubblesCompare linear pointer advancement with explicit 2-parent merge commits preserving branch history.~17 min
  2. 4.2Three-way merge anatomy & branch cleanupUnderstand how Git compares Base, Ours and Theirs to integrate diverged branches automatically.~17 min
  3. 4.3Resolving merge conflicts systematicallyDecode conflict markers, resolve colliding changes accurately and stage the resolution commit.~20 min
  4. 4.4Aborting tricky merges & PR squash workflowsRecover cleanly with git merge --abort and combine noisy WIP commits with git merge --squash.~17 min

05 · Undoing Mistakes & Recovery

5 lessons

Precision undoing across the Three Trees with git restore, reset, safe revert, stash context-switching and reflog rescue.

  1. 5.1Discarding working edits vs unstaging (git restore)Separate unstaging Index snapshots from discarding local edits using git restore.~16 min
  2. 5.2Moving pointers cleanly (git reset --soft / --mixed / --hard)See how soft, mixed and hard resets affect HEAD, Index and Working Tree differently.~18 min
  3. 5.3Safe shared undo with git revertUndo commits safely on pushed branches by recording an inverse commit without rewriting history.~16 min
  4. 5.4Context switching cleanly with git stashShelve unfinished modifications cleanly to ship an urgent hotfix, then restore your state.~16 min
  5. 5.5Time machine rescue with git reflogUse Reflog X-Ray and HEAD@{N} offsets to recover commits orphaned by reset or amend.~18 min

06 · Rewriting Local History Cleanly

4 lessons

Polish local branch commits before code review using --amend, linear rebase, interactive squash/fixup and cherry-pick.

  1. 6.1Fixing your latest commit with git commit --amendUpdate forgotten files or commit typos into the latest local commit safely.~15 min
  2. 6.2Linearizing branches cleanly with git rebaseReplay local feature commits sequentially on top of updated main and learn the Golden Rule of Rebasing.~18 min
  3. 6.3Clean PR commits with interactive rebase (-i)Reorder, reword, squash, fixup and drop WIP commits cleanly with the interactive todo planner.~20 min
  4. 6.4Targeted commit porting with cherry-pick & --ontoBackport single bugfix commits selectively across release branches cleanly.~18 min

07 · Remotes & Team Collaboration

4 lessons

Coordinate with teammates seamlessly using origin/* tracking refs, fetch, pull --rebase, safe --force-with-lease and clean PRs.

  1. 7.1Understanding origin/* remote-tracking refsWire remote origins, set upstream tracking links with -u, and understand cached origin/* refs.~15 min
  2. 7.2git fetch vs git pull (--ff-only & --rebase)Fetch remote teammate commits without altering working state before integrating cleanly.~18 min
  3. 7.3Safe pushing & --force-with-lease after rebaseAvoid clobbering un-fetched teammate patches using fetch + --force-with-lease instead of bare --force.~18 min
  4. 7.4Clean Pull Requests & collaboration etiquetteSync feature branches cleanly ahead of main and deliver small, reviewable PR stacks.~15 min

08 · Team Workflows & Git Debugging

4 lessons

Adopt scalable team branching models, isolate bugs logarithmically with bisect, juggle worktrees, and solve a capstone incident.

  1. 8.1GitHub Flow, Trunk-Based Development & release workflowsCompare branching workflows and run a clean short-lived Trunk-Based merge and tag flow.~15 min
  2. 8.2Hunting regressions in O(log N) with git bisectIsolate the exact commit that broke a build across 16+ snapshots using binary search.~20 min
  3. 8.3Parallel checkouts without switching: git worktreeRun hotfix builds in a linked worktree alongside active feature edits cleanly.~16 min
  4. 8.4Capstone Incident: Recover, Rebase & Ship SafelyCombine fetch, linear rebase, conflict resolution, release tagging and --force-with-lease.~22 min
Frequently asked questions

Git & Modern Collaboration FAQ

How many lessons and hands-on exercises are in Git & Modern Collaboration?

Git & Modern Collaboration covers 8 modules, 34 interactive lessons, and 170 practical exercises (~9 hours total) with instant automated validation.

Do I need local setup or IDE installation for Git & Modern Collaboration?

No installation required: every exercise and the interactive Git & Modern Collaboration playground execute right in your browser via WASM and isolated sandboxes, with instant feedback.

Is Module 1 of Git & Modern Collaboration free without creating an account?

Yes. Module 1 (“Module 1 — Fundamentals & The Four Areas”), the live playground, and the printable cheatsheet are permanently free without signup, saving your progress locally in your browser.

Which career learning paths include Git & Modern Collaboration?

Git & Modern Collaboration is a core building block of Modern Frontend & Web Engineering, Backend, Systems & DevOps, targeting roles such as Frontend Developer · UI Engineer · Full-Stack Web · Backend Engineer · Systems / SRE · Platform Engineer.