What is the difference between a lightweight tag and an annotated tag in Git?
| Lightweight tag | Annotated tag |
|---|---|
| Only a name pointing to a commit | A full object with tagger, date and message |
git tag v1.0 | git tag -a v1.0 -m "Version 1.0" |
| No extra information | git show v1.0 shows who created it, when and why |
| Good for private or temporary marks | Recommended 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? |