Git Playground

Every command here runs against a real object model: blobs, trees, and commits, hashed the same way git hashes them. The SHAs you see are the SHAs git would produce.

Pick a scenario, run commands, and watch the graph move. Nothing you do here can hurt anything.

Introduction

Empty directory

1/15

Nothing exists yet. Run git init and watch the object store fill up as you commit.

Introduction

Empty directory

Initialise a repo, create a file, and make your first commit.

playground trunk

Type a command, or click a suggestion below. `help` lists what works.

$
No commits yet. Once you run git commit the graph appears here.
Working tree

The working tree is empty. Create a file to have something to commit.

Staged for the next commit
nothing staged
Changed but not staged
working tree matches the index
Untracked
no untracked files
Index entries (path to blob)
index is empty