Skip to content

Instantly share code, notes, and snippets.

@muhammadghazali
Created April 3, 2012 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muhammadghazali/2289916 to your computer and use it in GitHub Desktop.
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
# 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