git commit with tag code example
Example 1: git commit and tag
git tag -a v1.0 7cceb02 -m "Your message here"
Example 2: git push tags
git push --follow-tags
git push origin <tag_name>
git push --tags
Example 3: git create tag and push
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: create a tag from a commit/branch
git tag -a version.number -m "Tag Message"
git push origin <tagname>
Example 6: git tag a previous commit
git tag -a v1.2 9fceb02 -m "Message here"