2015-12-18 02:04:11 +00:00
|
|
|
# git tag
|
|
|
|
|
|
|
|
> Create, list, delete or verify tags.
|
|
|
|
> Tag is reference to specific commit.
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- List all tags:
|
2015-12-18 02:04:11 +00:00
|
|
|
|
|
|
|
`git tag`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Create a tag with the given name pointing to the current commit:
|
2015-12-18 02:04:11 +00:00
|
|
|
|
|
|
|
`git tag {{tag_name}}`
|
|
|
|
|
2016-01-13 11:32:49 +00:00
|
|
|
- Create an annotated tag with the given message:
|
2015-12-18 02:04:11 +00:00
|
|
|
|
|
|
|
`git tag {{tag_name}} -m {{tag_message}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Delete the tag with the given name:
|
2015-12-18 02:04:11 +00:00
|
|
|
|
|
|
|
`git tag -d {{tag_name}}`
|
2016-10-27 05:55:22 +01:00
|
|
|
|
|
|
|
- Get updated tags from upstream:
|
|
|
|
|
|
|
|
`git fetch --tags`
|