Last active
April 15, 2016 03:37
-
-
Save redaphid/fd34467ae306777076a6a6b57d691187 to your computer and use it in GitHub Desktop.
github semver extensions
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
version() { | |
VERSION=$(git tag --list | xargs semver -v | tail -n 1) | |
echo $VERSION | |
} | |
version | |
major() { | |
semver -i major $(git tag --list | xargs semver -v | tail -n 1) | |
} | |
https://adamcod.es/2013/07/12/how-to-create-git-plugin.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment