Delete tag if already exist locally

This commit is contained in:
Norman Maurer 2021-05-19 11:43:06 +02:00
parent 037eddd5a2
commit 8be7c5b860

View File

@ -16,8 +16,8 @@ fi
BRANCH=$(git branch --show-current)
if git tag | grep -q "$2" ; then
echo "Tag $2 already exists"
exit 1
echo "Tag $2 already existed locally, deleting it"
git tag -d "$2"
fi
git fetch