From 809aa21bb0aa13c14841179b337423e66a298bbd Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 17 Nov 2024 13:15:16 +0100 Subject: [PATCH] =?utf8?q?Script=20zum=20Taggen=20der=20=C3=9Cbungen=20ein?= =?utf8?q?er=20Schulung?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- TAG.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 TAG.sh 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 -- 2.20.1