mirror of
https://github.com/tj/git-extras.git
synced 2026-09-13 08:56:19 -04:00
fixed incorrect argument passing and added pushing to remote
This commit is contained in:
parent
cfb0d15aad
commit
b91534b234
3
bin/git-rename-tag
Normal file → Executable file
3
bin/git-rename-tag
Normal file → Executable file
|
|
@ -4,6 +4,7 @@ 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 $new $old
|
||||
git tag -d $old
|
||||
git push origin $new
|
||||
git push origin :refs/tag/$old
|
||||
Loading…
Reference in a new issue