What is the difference between a lightweight tag and an annotated tag in Git?

Lightweight tagAnnotated tag
Only a name pointing to a commitA full object with tagger, date and message
git tag v1.0git tag -a v1.0 -m "Version 1.0"
No extra informationgit show v1.0 shows who created it, when and why
Good for private or temporary marksRecommended for public releases

See Git Tag.


Learn more about the similar topics:
Tutorials
No Content Found.
Exercises & Assignments
No Content Found.
Interview Questions & Answers
No Content Found.