Skip to content

Instantly share code, notes, and snippets.

@rmsj
Created May 1, 2022 09:36
Show Gist options
  • Save rmsj/ac11f72bfd5dc2aa1295489c25d8a9f6 to your computer and use it in GitHub Desktop.
Save rmsj/ac11f72bfd5dc2aa1295489c25d8a9f6 to your computer and use it in GitHub Desktop.
[Git tag renaming] renaming tags in git repo #git
git tag old new
git tag -d old
git push origin new :old
#other users to remove deleted tags
git pull --prune --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment