It all depends what type of tag you want to create:
git tag -a v1.0.0
.git tag v1.0.0
.There are a few other tag functionalities such as:
git tag -l -n3
. The command lists all existing tags with maximum 3 lines of their tag message. By default -n only shows the first line.git show <tag_identifier>
. It shows all you need to know about a specific tag.git tag --sort=<type>
git push origin v1.0
. You can git push the tag individually, or you can run git push --tags which will push all tags at once. Be sure to check this tag related article for more relevant information.