git tag for release code example
Example 1: git tag and relasease
Push tag
git push --tag
Example 2: git tag a previous commit
git tag -a v1.2 9fceb02 -m "Message here"
Push tag
git push --tag
git tag -a v1.2 9fceb02 -m "Message here"