Sandbox: hands-on git in your browser
Open a real terminal with git, type commands, and check every step.
The sandbox is a throwaway container in your browser: a real terminal, git already installed, the lesson's repository already built, and a check after every step. The container has no internet, so the remote repository in these lessons is a bare repository on the same machine; clone, push, and pull work exactly the same against it.
Lessons
- 1Your first repository
Set your signature, make a repository in ~/project, and clear the stray .git out of your home.
4 stepsStart - 2Three areas and a commit
The full loop by hand: file on disk, file in the index, snapshot in the repository. Two commits.
4 stepsStart - 3Undoing changes
See the diff, unstage a file, roll back an edit, fix a commit message, and hide a log with .gitignore.
6 stepsStart - 4Branches and merging
Create a branch, commit on it, merge it into main, and delete the pointer in a ready-made repo.
4 stepsStart - 5A merge conflict
Two conflicts in one repository: resolve one by hand, cancel the other with merge --abort.
4 stepsStart - 6A remote repository
Clone, push, fetch and pull against a bare repository next door: the full exchange without internet.
6 stepsStart - 7A feature branch cycle
Branch off, two commits, push the branch, merge into main: the full cycle against a local server.
4 stepsStart - 8Rebase: a linear history
Move feature onto a fresh main, squash the typo fixes with rebase -i, and fast-forward it into main.
4 stepsStart - 9First aid: getting work back
Stash an edit, wipe a commit with reset --hard, then bring it back by its hash from the reflog.
5 stepsStart
How it works
A real terminal
Not a simulation. A real shell in a container, with sudo and the usual tools.
Checked step by step
Each step has a check that runs in the container and tells you whether it worked.
Hints from the knowledge base
Stuck on a step? Open the matching reference article without leaving the sandbox.
Common questions
Do I need an account?
Reading is free. To run the terminal you sign in, so the sandbox runs under your account.
Do I need to install anything?
No. The terminal runs in the browser against a container on our side.
Is it safe to break things?
Yes. The container is throwaway and has no internet access, and it is deleted when you leave.
How long does a sandbox live?
About 30 minutes, then it is deleted. Open it again to keep going.