Difference between revisions of "Git tag"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
+ | ## Tag | ||
``` | ``` | ||
git tag -a v6.0.3 -m "Agent2 v6.0.3" | git tag -a v6.0.3 -m "Agent2 v6.0.3" | ||
Line 4: | Line 5: | ||
``` | ``` | ||
− | + | ## Delete | |
``` | ``` | ||
git tag -d v0.1.0 | git tag -d v0.1.0 | ||
+ | ``` | ||
+ | |||
+ | ## Checkout tag | ||
+ | ``` | ||
+ | git checkout tags/<tag> -b <branch> | ||
``` | ``` |
Revision as of 11:19, 3 June 2023
Tag
git tag -a v6.0.3 -m "Agent2 v6.0.3" git push origin v6.0.3
Delete
git tag -d v0.1.0
Checkout tag
git checkout tags/<tag> -b <branch>