Git
Detached HEAD
Detached HEAD is a state when the HEAD pointer refers not to a branch, but to a specific commit.
Occurs when switching to a commit directly:
git checkout <commit-hash>HEAD is "detached" from the branch — new commits will not belong to any branch.
To save changes, create a branch:
git switch -c new-branch