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 |
|---|
| No Content Found. |
| Exercises & Assignments |
|---|
| No Content Found. |
| Interview Questions & Answers |
|---|
| No Content Found. |