Git Playground
A browser-based workspace for learning Git. Practise commands in a simulated repository, work through lessons with quizzes, and look up what each command does.
Command practice
Type Git commands and watch the branch, staging area and commit history change.
Lessons and quizzes
Four guided lessons, from the basics to rebasing, each ending in a short quiz.
Reference and diagrams
Look up any documented command, and see how branching and merging fit together.
What the simulator does and does not do
The terminal runs git add, git branch, git checkout, git commit, git log, git remote, git status against an in-memory repository. Other commands are explained in the reference but are not executable here, and nothing you type can affect a real repository or your machine.
git-playground
LIVE
Repository State
Live visualization of your Git repository
Quick Commands
Click to execute common Git commands instantly
Status & InfoStaging & CommitsBranchingRemote