Tagging
Tagging
git
INT 331
• Tags are ref's that point to specific
points in Git history.
• Tagging is generally used to capture a
point in history that is used for a
marked version release (i.e. v1.0.1).
1.Annotated
2. lightweight tags
• Lightweight tags and Annotated tags differ in
the amount of accompanying meta data they
store.
• A best practice is to consider Annotated
tags as public, and Lightweight tags as
private.
• git tag -a
v1.4
Annotated tag with
message
• git
tag
Tagging old
commits
• The previous tagging examples have
demonstrated operations on implicit
commits.
• $ git tag -d v1