Skip to content
/ bump Public

CLI to bump version tag in a git repository following semver

License

Notifications You must be signed in to change notification settings

guilhem/bump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bump

GitHub release (latest SemVer) bump

Command-line to bump version in a git repository

Install

Get it from the Snap Store

$ snap install bump
$ brew install guilhem/homebrew-tap/bump
$ go get github.com/guilhem/bump

Usage

Help

$ 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.

Major

$ git tag
1.1.1
$ bump major
$ git tag
1.1.1
2.0.0

Minor

$ git tag 
v1.1.1
$ bump minor
$ git tag
v1.1.1
v1.2.0

Patch

$ git tag
1.1.1
$ bump patch
$ git tag
1.1.1
1.1.2