Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-19T12:51:52.000Z (10 months ago)
- Last Synced: 2024-10-17T18:28:36.720Z (4 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`
![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/guilhem/bump)
[![bump](https://snapcraft.io/bump/badge.svg)](https://snapcraft.io/bump)Command-line to bump version in a git repository
## Install
### [Snap](https://snapcraft.io/)
[![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-black.svg)](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 versionUsage:
bump [command]Available Commands:
help Help about any command
major Bump major version
minor Bump minor
patch Bump patchFlags:
--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 toggleUse "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
```