mirror of
https://github.com/tj/git-extras.git
synced 2026-09-12 08:26:17 -04:00
10 lines
223 B
Plaintext
Executable file
10 lines
223 B
Plaintext
Executable file
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 |