add tag to branch and commit from github code example
Example 1: git create tag and push
git tag -a v1.4 -m "my version 1.4"
Example 2: git add tag
git tag -a v1.2
git push origin v1.2
git tag -a v1.4 -m "my version 1.4"
git tag -a v1.2
git push origin v1.2