git commit with version number code example Example: how to add code version in git git tag -a "v1.5.0-beta" -m "version v1.5.0-beta"