⌘K
Options (3)
-m, --messagebooleanCreate an annotated tag with the given message
Example:
git tag {{tag_name}} {{[-m|--message]}} {{tag_message}}-d, --deletebooleanDelete the tag with the given name
Example:
git tag {{[-d|--delete]}} {{tag_name}}-t, --tagsbooleanGet updated tags from remote
Example:
git fetch {{[-t|--tags]}}Examples (8)
List all tags
git tagCreate a tag with the given name pointing to the current commit
git tag tag_nameCreate a tag with the given name pointing to a given commit
git tag tag_name commitCreate an annotated tag with the given message
git tag tag_name [-m|--message] tag_messageDelete the tag with the given name
git tag [-d|--delete] tag_nameGet updated tags from remote
git fetch [-t|--tags]Push a tag to remote
git push origin tag tag_nameList all tags which contain a given commit (`HEAD` if not specified)
git tag --contains commitmade by @shridhargupta | data from tldr-pages