From c764640fdc30c7e785ba0f4a0a792d4c3d112553 Mon Sep 17 00:00:00 2001 From: Dominic Kempf Date: Wed, 21 Aug 2024 11:32:19 +0200 Subject: [PATCH] Add retagging script --- retag.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 retag.sh diff --git a/retag.sh b/retag.sh new file mode 100755 index 0000000..47c9a13 --- /dev/null +++ b/retag.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Add the new tag +git tag "$1" + +# Retag "v1" to point to the new one +git tag -d v1 +git tag v1 + +# Push the new tag +git push origin "$1" + +# Retag "v1" remotely +git push --delete origin v1 +git push origin v1