GUIDED PRACTICE

Learn Git by changing Git.

Choose a lesson to open a fresh, prepared sandbox. GitSim highlights one step at a time and checks the repository—not a memorized command sequence.

Start course
01
LESSON 01 · PRESET INCLUDED

Create your first repository

Turn an empty directory into a Git repository.

git init
02
LESSON 02 · PRESET INCLUDED

Working tree and staging

See why Git's index is separate from your files.

git status
03
LESSON 03 · PRESET INCLUDED

Your first commit

Create and inspect an immutable snapshot.

git status
04
LESSON 04 · PRESET INCLUDED

Branches are movable refs

Create a branch and watch its reference move.

git branch
05
LESSON 05 · PRESET INCLUDED

Merge two histories

Practice a true merge commit with two parents.

git log --all
06
LESSON 06 · PRESET INCLUDED

Recover with reflog

Find a commit after a destructive-looking reset.

git reflog