versiontag
Bash command to automate tagging with semantic versioning in a git repository.
Current version: v2.1.3
Features
Allow easy maintenance of semantic versioning in git projects.
Since 1.4.2 supports .semver file writing.
Since 2.0.0 tags are not annotated by default. You must use the option -m
or --message
to annotate the tag.
Commands
help
- Shows a help
current
- Shows the last version tag found. If there is none it defaults to v0.0.0
patch
- Increases patch version: v1.0.0 -> v1.0.1
minor
- Increases minor version (and resets patch): v1.0.5 -> v1.1.0
major
- Increases major version (and resets minor and patch): v1.3.4 -> v2.0.0
remove
- Removes the last tag in the repository. This command doesn't support the -f|--force
option.
Options
-h|--help
- Shows help.
-f|--force
- Script won't ask for confirmation.
-d|--dry
- Executes without perform any change.
-m|--message
- Annotates the tag with the message.
-s|--semver
…