tag in git code example
Example 1: git commit and tag
git tag -a v1.0 7cceb02 -m "Your message here"
Example 2: git create tag and push
git tag -a v1.4 -m "my version 1.4"
Example 3: how to create tag in git
git tag -a v1.4 -m "my version 1.4"
Example 4: git add tag
git tag -a v1.2
git push origin v1.2
Example 5: git see tags
$ git tag -l -n2
Example 6: git tag from commit
$ git tag <tag_name> HEAD (for the last commit)