1, $ git Tag # print out all current label warehouse in the console
2, $ git Tag [Tagname] # new write label
3, push a single tag, command format is: Git Push Origin [Tagname]
4, push all the tag, command format is: Git Push [Origin] --tags
example:
Git Push --tags
or
git push origin --tags
How to add a tag to commit after multiple submissions
1, git log
see the commit log to find out that you need commit
. Assume submitted commit id
as "928a92a123456b126eb1234567c210ab8f1234e9d".
2, using git checkout <commit id>
, for example git checkout 928a92a123456b126eb1234567c210ab8f1234e9d
. This command will switch back to your local project on a commit record.
3, use git tag
be playing tag, for git tag v1.0.1
example: .
4, and then will be submitted to the local git tag on a remote repository git push origin v1.0.1
.