Skip to content

Instantly share code, notes, and snippets.

@redaphid
Last active April 15, 2016 03:37
Show Gist options
  • Save redaphid/fd34467ae306777076a6a6b57d691187 to your computer and use it in GitHub Desktop.
Save redaphid/fd34467ae306777076a6a6b57d691187 to your computer and use it in GitHub Desktop.
github semver extensions
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