Command-line to bump version in a git repository
$ snap install bump
$ brew install guilhem/homebrew-tap/bump
$ go get github.com/guilhem/bump
$ bump --help
Bump version
Usage:
bump [command]
Available Commands:
help Help about any command
major Bump major version
minor Bump minor
patch Bump patch
Flags:
--allow-dirty allow usage of bump on dirty git
--dry-run Don't touch git repository
-h, --help help for bump
--latest-tag use latest tag, prompt tags if false (default true)
-t, --toggle Help message for toggle
Use "bump [command] --help" for more information about a command.
$ git tag
1.1.1
$ bump major
$ git tag
1.1.1
2.0.0
$ git tag
v1.1.1
$ bump minor
$ git tag
v1.1.1
v1.2.0
$ git tag
1.1.1
$ bump patch
$ git tag
1.1.1
1.1.2