Created
March 28, 2018 06:51
-
-
Save matlockx/0c31bfadafe71b75ecf82588c8dd6751 to your computer and use it in GitHub Desktop.
Get latest tag from 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
#!/usr/bin/env sh | |
git for-each-ref refs/tags --sort=-taggerdate --format='%(refname:short)' --count=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment