Skip to content

Releases: rikby/gitext

Added new commands and loading user commands.

05 Jul 12:59
Compare
Choose a tag to compare

v0.6.0 New GIT alias `git tag-semver`

09 Nov 15:34
Compare
Choose a tag to compare

Added git tag-semver alias which allows to work with last tag and add new one with using semver.
(Source)

Format: git tag-semver SEMVER_OPTIONS.

SEMVER_OPTIONS cannot be omitted. If it's omitted it will try to add the same tag.

Use semver --help to get options list.

Examples

For example we need to add new build/pre-release

$ semver $(git tag)
v1.0.1
[...]
v1.2.0-alpha.5

$ git tag-semver --increment prerelease
New tag: v1.2.0-alpha.1

$ semver $(git tag)
v1.0.1
[...]
v1.2.0-alpha.5
v1.2.0-alpha.6

Create beta from last tag:
$ git tag-semver --increment prerelease --preid beta
New tag: v1.2.0-beta.0