December 6

Git tagging

To create a tag on your current branch (or with message), run this:

$ git tag {tag-name}
$ git tag -a {tag_name} -m "message"      #If you want to include a description with your tag, add -a to create an annotated tag:

This will create a local tag with the current state of the branch you are on. When pushing to your remote repo, tags are NOT included by default. You will need to explicitly say that you want to push your tags to your remote repo:

$ git push --tags
$ git push origin --tags

--tags All refs under refs/tags are pushed, in addition to refspecs explicitly listed on the command line. Or if you just want to push a single tag:

$ git push origin 

fetch tags 

$ git fetch --tags
$ git fetch --all --tags

check out a tag

$ git checkout tags/{tag}
$ git checkout tags/{tag} -b

Send us a message. We will reply as soon as we can.