Skip to content

Detached HEAD state

Checking out a commit instead of a branch leaves HEAD detached — a state Git supports but one that's easy to lose track of. Git Manager's toolbar always tells you which one you're in.

The toolbar shows HEAD instead of a branch name

Checking out a specific commit instead of a branch leaves you on a detached HEAD — a normal, if temporary, state Git itself supports. The toolbar makes it impossible to mistake for being on a branch: it reads plain "HEAD" instead of a branch name until you check one out again.

The toolbar shows HEAD instead of a branch name

Captured from the running app by this scenario.

You should see

  • The branch indicator reads HEAD

This page is generated from apps/e2e/features/detached-head.feature, the end-to-end test that drives the feature it describes.

MIT licensed · Screenshots exported from the real app by the end-to-end suite.