Delete tag if already exist locally
This commit is contained in:
parent
037eddd5a2
commit
8be7c5b860
@ -16,8 +16,8 @@ fi
|
|||||||
BRANCH=$(git branch --show-current)
|
BRANCH=$(git branch --show-current)
|
||||||
|
|
||||||
if git tag | grep -q "$2" ; then
|
if git tag | grep -q "$2" ; then
|
||||||
echo "Tag $2 already exists"
|
echo "Tag $2 already existed locally, deleting it"
|
||||||
exit 1
|
git tag -d "$2"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git fetch
|
git fetch
|
||||||
|
Loading…
Reference in New Issue
Block a user