added git-rename-tag

This commit is contained in:
Camille Reynders 2012-05-03 14:03:48 +02:00
parent f89f974bca
commit cfb0d15aad

9
bin/git-rename-tag Normal file
View file

@ -0,0 +1,9 @@
old=$1
new=$2
test -z $old && echo "old tag name required." 1>&2 && exit 1
test -z $new && echo "new tag name required." 1>&2 && exit 1
git tag $old $new
git tag -d $old
git push origin :refs/tag/$old