From: Kai Moritz Date: Sun, 17 Nov 2024 12:15:16 +0000 (+0100) Subject: Script zum Taggen der Übungen einer Schulung X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=809aa21bb0aa13c14841179b337423e66a298bbd;p=demos%2Fkafka%2Ftraining Script zum Taggen der Übungen einer Schulung --- diff --git a/TAG.sh b/TAG.sh new file mode 100755 index 0000000..491435d --- /dev/null +++ b/TAG.sh @@ -0,0 +1,18 @@ +#!/bin/bash +set -e + +source BRANCHES.sh + +if [ "$1" == "" ] +then + echo "Prefix for tag is missing" + exit 1; +fi + +for i in $BRANCHES; +do + declare -n branch=${i} + echo -e "\nTagging $branch with ${branch}--$1\n" + git tag -f ${branch}--$1 $branch + git push --force origin ${branch}--$1 +done