🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Nothing; commits in detached HEAD are always kept on main
  2. B.Create a branch from the tag, for example git switch -c hotfix/1.0.1 v1.0.0
  3. C.Delete the tag
  4. 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 →