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
Git Tag
Git Submodule
Git Hooks
Exercises & Assignments
Create an annotated tag for a release
Interview Questions & Answers
What is a git submodule?
What is the difference between a lightweight tag and an annotated tag in Git?
What are Git hooks?
What is git blame?
What is git bisect?