Offer possibility to:
- automatically tag a release in a git repository
- get the new tag digits available in a git repository
A release version is composed by 3 digits like 0.0.0 according to https://semver.org/
If you add to a commit message:
+semver: breakingor+semver: majorit will increase the first one.+semver: featureor+semver: minorit will increase the second digit.+semver: fixor+semver: patchit will increase the third digit.
OR
If you use the u parameter:
./git-tag.sh -u breakingor./git-tag.sh -u majorit will increase the first one../git-tag.sh -u featureor./git-tag.sh -u minorit will increase the second digit../git-tag.sh -u fixor./git-tag.sh -u patchit will increase the third digit.
u parameter is mandatory:
breakingormajorit will increase the first one.featureorminorit will increase the second digit.fixorpatchit will increase the third digit.
It will give you the new tag digits available in a git repository
Bash and git installed.
In a git repository:
chmod +x git-tag.sh
./git-tag.shAt the end, you can push it on the remote server if needed: git push --tags.
In a git repository:
chmod +x get-tag.sh
./get-tag.shHave a question? Contact us Email LD
