Getting release number from git in command line #21593
Answered
by
airtower-luna
anjanesh
asked this question in
New to GitHub
-
Is there someway to get the exact release number 1.5.5 from git or do I need to depend on string manipulation to achieve that ? |
Beta Was this translation helpful? Give feedback.
Answered by
airtower-luna
May 29, 2021
Replies: 1 comment
-
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. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.