Git Flow

Where every command actually moves your data — click a command to find out.

Stash

set aside

Workspace

your files

Staging

next commit

Local Repo

your history

Remote Repo

on GitHub
INSPECT
STAGE
COMMIT
UNDO & BRANCH
SYNC
STASH
moves datanothing moves

What is HEAD?

The columns above show where your files go. They cannot show where you are. HEAD is Git's answer: a pointer that says which commit you are standing on. Almost always it points at a branch, and the branch points at a commit.

a1c9f24be7d0mainHEAD

The normal state. HEAD points at main, main points at the newest commit. Commit and both pointers move forward together — this is why your work reliably reappears when you come back to the branch.