tj.git-extras/bin/git-rename-tag
2012-06-20 12:09:56 +02:00

12 lines
234 B
Bash
Executable file

#!/bin/sh
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 $new $old
git tag -d $old
git push origin $new
git push origin :refs/tag/$old