Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/marcuswhybrow/gitbump

Bumps your git version tag by major, minor or patch incrementally.
https://github.com/marcuswhybrow/gitbump

Last synced: 27 days ago
JSON representation

Bumps your git version tag by major, minor or patch incrementally.

Awesome Lists containing this project

README

        

# gitbump

Sometimes one needs a tag that always points to the same commit as your latest release tag. Bumping a version number is therefore a pain. `gitbump` increments the major, minor or patch number by one and updates a `latest` tag too.

### Install it!

sudo wget -O /usr/local/bin/gitbump http://git.io/rnTHRQ

### Give gitbump What it Wants

`gitbump` expects two things: A tag in the [semver](http://semver.org/) format (ex: `1.25.3`) and a tag `latest` that points to the same commit as your latest version tag. To set this up first time you can do:

git tag -a 0.0.0 -m "Version 0.0.0"
git tag -a latest -m "Latest recommended version (0.0.0)"

### Usage

gitbump # Bump the patch version (right most number)
gitbump patch # Same as before (the explicit approach)
gitbump minor # Bump the minor version (the middle number)
gitbump major # Bump the major version (yup: the left most number)