Bird
0
0

Why is it recommended to use annotated tags instead of lightweight tags for releases?

hard📝 Conceptual Q10 of 15
Git - Tagging
Why is it recommended to use annotated tags instead of lightweight tags for releases?
AAnnotated tags store extra metadata like tagger info and message
BLightweight tags cannot point to commits
CAnnotated tags are faster to create
DLightweight tags are automatically deleted after push
Step-by-Step Solution
Solution:
  1. Step 1: Understand annotated vs lightweight tags

    Annotated tags store metadata such as tagger name, date, and a message, while lightweight tags are just pointers.
  2. Step 2: Reason why annotated tags are preferred for releases

    Extra metadata helps track release info and history, making annotated tags better for official releases.
  3. Final Answer:

    Annotated tags store extra metadata like tagger info and message -> Option A
  4. Quick Check:

    Annotated tags = metadata for releases [OK]
Quick Trick: Use annotated tags for releases to keep metadata [OK]
Common Mistakes:
  • Thinking lightweight tags cannot point to commits
  • Believing annotated tags are slower
  • Assuming lightweight tags auto-delete

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes