git.zd.zone/hrpc/hrpc@v0.0.12/scripts/tag.sh (about) 1 #!/bin/bash 2 3 echo -e "Current Tags: " 4 git tag -l 5 6 echo -e "**************\n" 7 8 NEW_TAG="$1" 9 10 if [[ "${NEW_TAG}" == "" ]]; then 11 echo -e "Missing the new tag" 12 exit 1; 13 fi 14 15 ## create and push the new tag 16 git tag ${NEW_TAG} 17 git push origin ${NEW_TAG} 18 19 # delete a tag 20 #git tag -d ${TAG_NAME} 21 #git push origin :refs/tags/${TAG_NAME}