Git · Middle · Question 25 of 75
Annotated vs lightweight tags: what's the difference?
- 1Lightweight tags can be pushed; annotated can't
- ✓Correct answer: Annotated tags are objects with a message and tagger
- 3Annotated tags move with the branch; lightweight don't
Explanation
A lightweight tag is just a ref to a commit. Use annotated (or signed) tags for releases: they record who tagged and when, and git describe uses them by default.