check tag of particular branch git code example
Example 1: git add tag
git tag -a v1.2
git push origin v1.2
Example 2: create a tag from a commit/branch
git tag -a version.number -m "Tag Message"
git push origin <tagname>
git tag -a v1.2
git push origin v1.2
git tag -a version.number -m "Tag Message"
git push origin <tagname>