Tags are pointers to specific points in Git history. They are usually used to mark release versions (e.g. v1.0.0).
An annotated tag stores extra metadata like the tagger name, email, and date.
git tag -a $tag_name -m "$message" $commitgit tag -lTags don't get deleted automatically if you delete them on the remote. Use this to clean up old or mistakenly created tags locally.
git tag -d $tagIf a tag is signed with GPG, you can verify the signature to ensure it came from a trusted source.
git tag -v $tagTags are not pushed to remotes by default when you run git push. You must explicitly push them.
git push $remote $tagIf you accidentally pushed a tag, you must delete it from the remote server explicitly.
git push $remote --delete $tag