Last active
August 29, 2015 14:04
-
-
Save keith9820/93de292999c0ee47b9a2 to your computer and use it in GitHub Desktop.
Get the larget tag number from a git repo
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 ls-remote --tags origin | tail -n1 | cut -d "/" -f3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
or svn:
svn ls http://svn.xxx.com/project/tags/qa | cut -d "/" -f 1 | sort -t . -k 1,2n -k 2,2n -k 3,2 | tail –n1