December 6

Git tagging

To create a tag on your current branch, run this:

git tag 

If you want to include a description with your tag, add -a to create an annotated tag:

git tag -a

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 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 <tag>

Promotional / Featured products: Contents Settings Layouts
Experteer's Scripting: Coding - Experts Only
Send us a message. We will reply as soon as we can.