mirror of
https://github.com/tj/git-extras.git
synced 2026-09-12 08:26:17 -04:00
added git-rename-tag
This commit is contained in:
parent
f89f974bca
commit
cfb0d15aad
9
bin/git-rename-tag
Normal file
9
bin/git-rename-tag
Normal 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
|
||||
Loading…
Reference in a new issue