🎙 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 15 of 15

Which command lists tags in correct version order, so v1.10.0 comes after v1.9.3?

Which command lists tags in correct version order, so v1.10.0 comes after v1.9.3?

  1. A.git tag
  2. B.git tag --sort=v:refname
  3. C.git tag --sort=date
  4. D.git tag -n
Answer & explanation

Correct answer: git tag --sort=v:refname

Plain git tag sorts as text, which puts v1.10.0 before v1.2.0.

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 →