git check version of branch 1

git check version of branch

git describe --tags

Here is what the above code is Doing:
1. We’re using the git command to get the latest tag on the current branch.
2. We’re using the git command to get the number of commits on the current branch
since the latest tag.
3. We’re using the git command to get the current commit hash.
4. We’re appending all of this information to the current version.py file.

A full list of for-loops that are available can be found here:
https://www.python.org/dev/peps/pep-0440/#appendix-b-parsing-version-strings-with-regular-expressions

Similar Posts