https://github.com/guilhem/bump
CLI to bump version tag in a git repository following semver
https://github.com/guilhem/bump
git hacktoberfest semantic-versioning semver version versioning
Last synced: 8 months ago
JSON representation
CLI to bump version tag in a git repository following semver
- Host: GitHub
- URL: https://github.com/guilhem/bump
- Owner: guilhem
- License: apache-2.0
- Created: 2019-10-28T17:01:15.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-19T12:51:52.000Z (over 1 year ago)
- Last Synced: 2025-02-27T09:37:55.457Z (9 months ago)
- Topics: git, hacktoberfest, semantic-versioning, semver, version, versioning
- Language: Go
- Homepage:
- Size: 126 KB
- Stars: 25
- Watchers: 4
- Forks: 3
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `bump`

[](https://snapcraft.io/bump)
Command-line to bump version in a git repository
## Install
### [Snap](https://snapcraft.io/)
[](https://snapcraft.io/bump)
```sh
$ snap install bump
```
### [Homebrew](https://brew.sh/)
```sh
$ brew install guilhem/homebrew-tap/bump
```
### [Go get](https://golang.org/pkg/cmd/go/internal/get/)
```sh
$ go get github.com/guilhem/bump
```
## Usage
### Help
```sh
$ 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
```sh
$ git tag
1.1.1
$ bump major
$ git tag
1.1.1
2.0.0
```
### Minor
```sh
$ git tag
v1.1.1
$ bump minor
$ git tag
v1.1.1
v1.2.0
```
### Patch
```sh
$ git tag
1.1.1
$ bump patch
$ git tag
1.1.1
1.1.2
```