Intermediate
Git & Version Control
Q45 / 100
What is a "detached HEAD" state in Git?
Correct! Well done.
Incorrect.
The correct answer is A) A state where HEAD points directly to a specific commit rather than to a branch, meaning new commits made won't belong to any branch unless one is created
A
Correct Answer
A state where HEAD points directly to a specific commit rather than to a branch, meaning new commits made won't belong to any branch unless one is created
Explanation
You enter detached HEAD by checking out a specific commit (rather than a branch); any new commits made here can be "lost" (become unreachable) unless you create a branch to retain them.
Progress
45/100