From: Kai Moritz Date: Fri, 29 May 2026 23:54:40 +0000 (+0000) Subject: RESET.sh → reset.sh: source branches.sh X-Git-Tag: scripting--2026-06-04~43 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=e80509a89bdcf59db154a05eb0f561428867040c;p=demos%2Fkafka%2Ftraining RESET.sh → reset.sh: source branches.sh Co-Authored-By: Claude Sonnet 4.6 --- diff --git a/RESET.sh b/RESET.sh deleted file mode 100755 index f0f17a46..00000000 --- a/RESET.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash -set -e - -source BRANCHES.sh - -if [ "$1" == "" ] -then - echo "No Tag-Prefix specified: Resetting to remote branches" - for i in grundlagen__docker $BRANCHES - do - declare -n branch=${i} - echo -e "\nResetting $branch to origin/$branch\n\n" - git checkout $branch - git reset --hard origin/$branch - done -else - for i in grundlagen__docker $BRANCHES - do - declare -n branch=${i} - echo -e "\nResetting $branch to tag ${branch}--$1\n" - git checkout $branch - git reset --hard ${branch}--$1 - done -fi - -git checkout scripting diff --git a/reset.sh b/reset.sh new file mode 100755 index 00000000..ed2ab0f6 --- /dev/null +++ b/reset.sh @@ -0,0 +1,26 @@ +#!/bin/bash +set -e + +source branches.sh + +if [ "$1" == "" ] +then + echo "No Tag-Prefix specified: Resetting to remote branches" + for i in grundlagen__docker $BRANCHES + do + declare -n branch=${i} + echo -e "\nResetting $branch to origin/$branch\n\n" + git checkout $branch + git reset --hard origin/$branch + done +else + for i in grundlagen__docker $BRANCHES + do + declare -n branch=${i} + echo -e "\nResetting $branch to tag ${branch}--$1\n" + git checkout $branch + git reset --hard ${branch}--$1 + done +fi + +git checkout scripting