Git – Tagging

Listing Your Tags

$ git tag
v1.0.0

Creating Tags

# create tag in local
$ git tag -a v1.0.1 -m "version updated to 1.0.1"
$ git tag
v1.0.0
v1.0.1

#push tag to the server
$ git push origin v1.0.1

#push all tags to the server
$ git push origin --tags

Delete v1 .0.1 tag

# delete tag v1.0.1 in local
$ git tag -d v1.0.1

# delete tag v1.0.1 in the server
$ git push origin :refs/tags/v1.0.1

Checking out Tags

$ git checkout v1.0.1

https://git-scm.com/book/en/v2/Git-Basics-Tagging

Leave a Reply

Your email address will not be published.

ANOTE.DEV