Skip to content

Getting release number from git in command line #21593

Discussion options

You must be logged in to vote

That command gives you the most recent tag reachable from the current commit. Git itself doesn’t ascribe any meaning to tag names, you’ll need to handle that yourself. So yes, string manipulation it is.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants