Practice

A real repo, pre-seeded with history, runs right here in your tab. Edit files, stage, commit, branch, stash, and merge — even hit a real conflict with <<<<<<< markers and resolve it by hand.

Now practicing

git reset

Move the branch pointer and undo your staging decisions.

git-in-depth · practice

Starting practice sandbox…▍

Try typing:
❯

Files — click to edit

Want more practice scenarios?

Paste this prompt into ChatGPT, Claude, or any AI to generate infinite custom challenges that you can solve right here in this terminal:

I'm practicing Git using a browser-based sandbox. I'm focusing on the command: git-reset. Please generate a realistic practice scenario for me. Include: 1. The setup commands I need to run first to configure the scenario. 2. The goals I need to achieve. 3. Don't give me the exact answer commands to solve the goal — let me figure it out! IMPORTANT: I am following a curriculum. So far, I have ONLY learned the following commands: git status, git add, git commit, git init, git config, git branch, git checkout, git switch, git merge, git rebase, git log, git show, git diff, git blame, git reflog, git gc, git reset Do NOT require me to use any Git commands outside of this list to solve the scenario.

Everything runs on your device in a self-contained sandbox — nothing is uploaded. Reset wipes your session; closing the tab discards it.