Interactive Git Sandbox
Type real Git commands and watch branches, commits, merges, and rebases update on a live graph — no install, no risk.
Commit Graph
main
No commits yet
Type git commit -m "first commit" in the terminal to start.
Terminal
main
Welcome to Interactive Git Sandbox.
Type `help` for a list of supported commands.
$
Command Reference
Basics
git initInitialize repositorygit statusShow current stategit add <file>Stage filegit commit -m "msg"Commit changesgit logShow commit historyBranches
git branch <name>Create branchgit checkout <name>Switch branchgit merge <branch>Merge branchgit rebase <branch>Rebase branchUndo
git reset --hardReset to HEADgit revert <sha>Revert commitundoUndo last commandresetReset sandbox
Current State
mainCurrent branch0Total commits1Branches0Command history