Skip to content

Instantly share code, notes, and snippets.

@rafael-neri
Created May 26, 2020 13:28
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save rafael-neri/f43f1ba76fc178637c86157c7736a0fb to your computer and use it in GitHub Desktop.
Save rafael-neri/f43f1ba76fc178637c86157c7736a0fb to your computer and use it in GitHub Desktop.
Git Rename Tag Local and Remote
# Create new from old
git tag new old
# Remove old tag
git tag -d old
# Sync changes from old tag to remote
git push origin :refs/tags/old
# Send new tag to remote
git push --tags
@josegus
Copy link

josegus commented Apr 16, 2021

works like a charm! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment