Created
August 7, 2016 20:22
-
-
Save birchestx/c70aa7c168c3ce492fce9f258aed8a6c to your computer and use it in GitHub Desktop.
Get latest git tag and increment version by 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git tag --sort version:refname |tail -n1 | gawk -F"." '{$NF+=1}{print $0RT}' OFS="." ORS="" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment