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 add

Copy your edits into the staging area (the index).

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-add. 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 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.