Created
April 3, 2012 06:58
-
-
Save muhammadghazali/2289916 to your computer and use it in GitHub Desktop.
A steps of commands to rename a tag in git repository. Source: http://stackoverflow.com/a/5719854/1061371
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
# checkout the old tag | |
git checkout old | |
# create a new tag | |
git tag new | |
# delete the old tag on local git repository | |
git tag -d old | |
# delete the old tag on remote git repository | |
git push origin :refs/tags/old |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment