Skip to content

Instantly share code, notes, and snippets.

@eugeneiiim
Created June 18, 2015 05:25
Show Gist options
  • Save eugeneiiim/d990ddcb075d2dac9a9f to your computer and use it in GitHub Desktop.
Save eugeneiiim/d990ddcb075d2dac9a9f to your computer and use it in GitHub Desktop.
Rename tag to old-tag
#! /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