Created
June 18, 2015 05:25
-
-
Save eugeneiiim/d990ddcb075d2dac9a9f to your computer and use it in GitHub Desktop.
Rename tag to old-tag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
set -e -x | |
TAG=$1 | |
# echo $TAG | |
# exit | |
git tag old-$TAG $TAG | |
git tag -d $TAG | |
git push origin :refs/tags/$TAG | |
git push --tags |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment