git tag
Create, list, delete, or verify tags. A tag is a static reference to a commit. More information: https://git-scm.com/docs/git-tag.
- List all tags:
git tag
- Create a tag with the given name pointing to the current commit:
git tag
- Create a tag with the given name pointing to a given commit:
git tag
- Create an annotated tag with the given message:
git tag
- Delete the tag with the given name:
git tag
- Get updated tags from remote:
git fetch
- Push all tags to a remote:
git push --tags
- List all tags which contain a given commit (
HEADif not specified):
git tag --contains
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
