Git Playground

A real terminal. A fake repo. Nothing here can touch your actual machine.

This simulates two repositories β€” your local machine and a remote called origin, exactly like GitHub. Type real git commands below. Every command you type actually runs β€” the suggestion chip under the terminal is just a hint for what to try next, it never blocks or overrides what you type and hit Enter on.

Your progress

  • Clone or initialize the playground repo
  • Branch, commit, and merge it back into main
  • Push to origin, or pull a teammate's change

πŸ’» Local repository

☁️ Remote β€” origin

This is what everyone else sees β€” only what's been pushed shows up here.

πŸ“ Working directory

playground β€” zsh

Built from scratch for this course. The "what to try next" chip is state-driven β€” it reads your repo's actual situation (staged files, ahead/behind origin, unmerged branches) rather than matching what you've typed.