#

detached-head

State where HEAD points directly to a commit instead of a branch

ProgrammingWhy Git disallows --detach with --orphan (detached HEAD)

Why Git forbids --detach with --orphan, how to detach HEAD by using git checkout on an orphan commit SHA, and scripting patterns to handle orphan branches.

1 answer 1 view