From 0bee92c61c39561eae33b3ee97c5d135c50ab75e Mon Sep 17 00:00:00 2001 From: Yuki Sawa Date: Sun, 12 May 2024 21:05:05 -0700 Subject: [PATCH] clean --- delete_a_tag.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 delete_a_tag.sh diff --git a/delete_a_tag.sh b/delete_a_tag.sh new file mode 100644 index 0000000..cdcd9fe --- /dev/null +++ b/delete_a_tag.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Specific tag to delete +TAG="$1" + +# Delete the specific local tag +git tag -d $TAG + +# Fetch the current list of tags +git fetch + +# Delete the specific remote tag +git push --delete origin $TAG + +# Prune local references to remote tags +git fetch --prune --prune-tags + +# Delete the specific GitHub release using the GitHub CLI +gh release delete $TAG --yes