View current tags:
$ git tag
$ git tag -l
$ git tag --list
View tags with a filter:
$ git tag -l "v1.8.5*" # for example
-a
option to createa an annotated tag.$ git tag -a v0.0.1 -m "first tag"
$ git tag
v0.0.1
Sharing Tags: By default, the git push command does not transfer tags to remote servers. You will have to explicitly push tags to a shared server after you have created them. This process is just like sharing remote branches — you can run git push origin <tagname>
.
$ git push origin v0.0.1
Enumerating objects: 1, done.
Counting objects: 100% (1/1), done.
Writing objects: 100% (1/1), 157 bytes | 157.00 KiB/s, done.
Total 1 (delta 0), reused 0 (delta 0), pack-reused 0
To github.com:sandialabs/sibl.git
* [new tag] v0.0.1 -> v0.0.1