Updating basetag.sh

This commit is contained in:
Sahil Ahuja 2025-02-05 19:20:34 +05:30
parent 2bd93d6298
commit 12122870c3

View File

@ -1,17 +1,17 @@
#!/bin/bash
## Creating new releases
# #For a fresh repo / Creating new releases
# git add -A;
# git commit -m "<commit msg>"
# #Minor version
# git tag -a -m "<tag msg>" v1.0.1
# #Setting a tag
# git tag -a -m "<tag msg>" v1.0.0
# git push --follow-tags
# #Moving major version
# #Moving a tag (eg: for major version retagging)
# git tag -fa v1
# git push --tags -f
# https://gist.github.com/CSTDev/08c127680e3b5fae38c051da3e489351
# Based on https://gist.github.com/CSTDev/08c127680e3b5fae38c051da3e489351
# Commit with a log containing #minor or #major to increment the respective version number
#get highest tag number containing at least 2 dots
VERSION=`git describe --abbrev=0 --tags --match="v[0-9]*\.[0-9]*\.[0-9]*"`