← Quiz: Tags, Releases and Versioning: all 15 questions
Quiz: Tags, Releases and Versioning · Question 9 of 15
You checked out tag v1.0.0 to fix a bug in that release. What should you do before committing?
You checked out tag v1.0.0 to fix a bug in that release. What should you do before committing?
- A.Nothing; commits in detached HEAD are always kept on main
- B.Create a branch from the tag, for example git switch -c hotfix/1.0.1 v1.0.0
- C.Delete the tag
- D.Run git push --tags
Answer & explanation
Correct answer: Create a branch from the tag, for example git switch -c hotfix/1.0.1 v1.0.0
In detached HEAD, new commits are on no branch and are easy to lose.
Can you get the rest right without peeking?
Take the timed Quiz: Tags, Releases and Versioning quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →