tj.git-extras/bin/git-delete-tag
Alexander Krasnukhin fbd2d8fe73 Delete tag on origin even if it wasn't locally fetched yet.
This should keep consistent logic among scripts i.e. git-delete-tag
should behave the same way as git-delete-branch.
2012-11-18 11:22:13 +01:00

7 lines
134 B
Bash
Executable file

#!/bin/sh
tagname=$1
test -z $tagname && echo "tag required." 1>&2 && exit 1
git tag -d $tagname
git push origin :refs/tags/$tagname