Git Playground
Real commits, branches, merges and conflicts — running in your browser, never touching a real repo.
1/7 missions
bash · ~/repoon main
Welcome to the Git sandbox — these are real commands against a real in-browser repository.
Type 'help' to see everything available, or run a mission's steps on the right.
$
Commit graph
init
e6a624d · main
Working tree
README.mdunstaged
Branches: main
Missions
Your first commit
Basics · Create a file, stage it, commit it.
Done
Create and switch branches
Basics · A branch is just a moving label on a commit.
To do
Branch and merge
Intermediate · Commit on a branch, switch back to main, merge it.
To do
Rebase without pain
Intermediate · Replay your branch commits on top of main for a straight history.
To do
Squash several commits into one
Intermediate · Soft-reset back, then commit the combined work once.
To do
Resolve a merge conflict
Advanced · Edit the same file on two branches, merge, fix the markers, commit.
To do
Cherry-pick a single commit
Advanced · Copy one commit onto the branch you are standing on.
To do