Git · Junior · Question 68 of 75
What does git checkout v1.0 (a tag) leave you in?
- 1The latest commit on the
mainbranch - 2A new branch called
v1.0 - ✓Correct answer: A detached HEAD at the tagged commit
Explanation
Tags don't move, so you can't commit "on" them. To fix an old release, create a branch from the tag: git switch -c hotfix v1.0.