git-releases
is a shell script that will manage semantic version numbers as tags for a Git repository.
- Copy
git-releases
to a directory in$PATH
. - Chmod
git-releases
to 755.
kherrera $ git releases
Simple handling of semantic version number.
OPTION
--latest Displays the latest version.
--list Lists all of the versions.
--major Increments to the next major version number.
--minor Increments to the next minor version number.
--patch Increments to the next patch version number.
kherrera $ git releases --minor
Current: 1.2.5
Next: 1.3.0
Add new version? [Y/n] y
Version added.