When the user checks out a commit which has a local branch ref attached to it, they can select between checking out the branch or checking out the commit as detached head.