Created
December 17, 2015 12:16
-
-
Save mahemoff/1b6c26fa9c474f4515aa to your computer and use it in GitHub Desktop.
Aliases to support semantically-versioned git tags
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
# First install https://github.com/flazz/semver | |
# With this script, you can run "vminor add more cowbell" or just "vminor" | |
function vbump() { | |
level=$1 | |
semver inc $level | |
shift | |
git tag -a $(semver tag) -m "${*:-bump}" | |
git tag -n9 | grep `git describe` # show annotated | |
} | |
function vpatch() { vbump patch $* ; } | |
function vminor() { vbump minor $* ; } | |
function vmajor() { vbump major $* ; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment