Git · Junior · Question 42 of 75
What is a "detached HEAD"?
- 1The remote repository is unreachable
- 2The current branch was deleted on the server
- ✓Correct answer:
HEADpoints to a commit directly, not to a branch
Explanation
It happens after checking out a commit or tag. You can look around and commit, but new commits belong to no branch; create one with git switch -c to keep them.