Created
September 5, 2019 12:19
-
-
Save peerapach/2745d9e6c2c60ffcc2f34b2d596d2d83 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # Get latest Git tag | |
| git describe --tags $(git rev-list --tags --max-count=1) | |
| # Get Previous Git Tag (from latest tag) | |
| git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment