Git playground
Learn git by typing it. Edit files, stage them, commit, branch, merge, push to GitHub and undo mistakes, and watch the graph draw what happened.
Loading the playground…
Files
README.mduntrackedindex.htmluntrackedsrc/app.jsuntracked
The four places
- 1Working directory: the files you edit.
- 2Staging area: what the next commit will hold. git add puts a change here.
- 3Repository: the commits. git commit records the staging area.
- 4Remote (origin): the copy on GitHub. git push sends commits, git pull brings them.
Quick commands
The prompt suggests the next step of the tour: press Tab to write it, Enter to run it, Esc to leave the prompt. ↑ ↓ for history. Click a commit to paste its hash.