git commit and tag

C++
git tag -a v1.4 -m "my version 1.4"
git tag -a v1.2 
git push origin v1.2git add .
git commit -m "some description"
git tag v0.1.9 # or any other text
git push origin master # push the commit
git push --tags origin # push the tags
git tag -a v1.0 7cceb02 -m "Your message here"

Source

Also in C++: