Git playground
A terminal with a small Git repository already set up: two commits on main, a feature branch and a new file waiting. Practice commands and see the result straight away. You don't need an account, and there is nothing to install.
Opening the workspace
Opening the workspace
Independent practice environmentNot affiliated with Software Freedom Conservancy or GitHub, Inc.Details
Independent practice environment
This is an independently developed practice environment by The Work Gym for learning Git. It is not an official Git tool.
The Work Gym is not affiliated with, sponsored by, endorsed by or certified by Software Freedom Conservancy or GitHub, Inc.
Git is a trademark of Software Freedom Conservancy. GitHub is a trademark of GitHub, Inc.
What you can try
- See where you are:
git status,git log --oneline --graph --allandgit branch. - Commit the new file:
git add notes.txtthengit commit -m "Add notes". - Compare branches:
git diff main feature/by-region. - Merge the feature branch:
git merge feature/by-region. - Change a file, then try
git stash,git stash popandgit restore. - Make a branch of your own with
git switch -c, commit on it and merge it back.
The sample data
An order report project: report.py, README.md, data/orders.csv and a .gitignore. main has two commits, feature/by-region has one more, and notes.txt is new and untracked.
Learn it step by step
The playground checks nothing. In the course, lessons come in order and every exercise is checked the moment you finish it, with a hint that names the mistake. The first unit is free.
Course: GitLesson 1: Repository creationLesson 7: History and commit graphsLesson 13: Branch referencesLesson 18: Three-way mergesLesson 21: Stashes and unfinished workTest your level
Questions about the playground
Is it real Git?
It is a Git simulation that runs in your browser: the everyday commands (status, add, commit, log, diff, branch, switch, merge, stash, restore, reset, tag) behave as Git does, but there is no remote to push to.
Can I break anything?
No. Reset, delete or rewrite as much as you like: Start again puts the sample repository back as it was.
Is the Git playground free?
Yes. You don't need an account or a card, and it runs in your browser, so there is nothing to install.
Is my work saved?
Only in this browser. The playground keeps your last session on this device so it is there when you come back, and sends nothing to an account. Start again puts the sample data back.
Other playgrounds
- SQL playground
Run any query on a sample store database: products, customers, orders and employees.
- Python playground
A Python notebook with pandas and sample CSV files, running in your browser.
- Excel practice sheet online
A spreadsheet that works like Excel, with 30 sample orders for formulas, pivots and charts.
- Linux terminal online
A Bash-style terminal with sample logs, a CSV and a config file to practice commands on.
- Power BI playground: practice DAX
Write DAX measures on a sample sales model and see them in a visual.
- Power Query online playground
Clean and reshape messy sample files in a Power Query Editor.