How to tagging with git

This is the command to create a tag of our code:

git tag -a v0.1 -m 'my message v0.1'

The -m specifies a tagging message, which is stored with the tag

And if you want to push your tag to your repository you can do:

git push --tags

source