Difference between revisions of "Git tag"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 8: | Line 8: | ||
``` | ``` | ||
git tag -d v0.1.0 | git tag -d v0.1.0 | ||
+ | ``` | ||
+ | |||
+ | ## list | ||
+ | ``` | ||
+ | git tag -l | ||
``` | ``` | ||
Line 13: | Line 18: | ||
``` | ``` | ||
git checkout tags/<tag> -b <branch> | git checkout tags/<tag> -b <branch> | ||
+ | ``` | ||
+ | |||
+ | # All steps example | ||
+ | ``` | ||
+ | git checkout tags/v0.1.0 -b patch-v0.1.0 | ||
+ | edit file.txt | ||
+ | git add file.txt | ||
+ | git commit -m "update file.txt" | ||
+ | git tag -a v0.1.1 -m "Update version" | ||
+ | git push origin v0.1.1 | ||
``` | ``` |
Latest revision as of 17:05, 31 January 2024
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
list
git tag -l
Checkout tag
git checkout tags/<tag> -b <branch>
All steps example
git checkout tags/v0.1.0 -b patch-v0.1.0 edit file.txt git add file.txt git commit -m "update file.txt" git tag -a v0.1.1 -m "Update version" git push origin v0.1.1