https://github.com/marcuswhybrow/gitbump
Bumps your git version tag by major, minor or patch incrementally.
https://github.com/marcuswhybrow/gitbump
Last synced: 4 months ago
JSON representation
Bumps your git version tag by major, minor or patch incrementally.
- Host: GitHub
- URL: https://github.com/marcuswhybrow/gitbump
- Owner: marcuswhybrow
- Created: 2013-08-29T00:06:55.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2016-04-15T17:47:57.000Z (about 9 years ago)
- Last Synced: 2025-01-25T20:26:36.244Z (5 months ago)
- Size: 1.95 KB
- Stars: 6
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)