Skip to content

Instantly share code, notes, and snippets.

@rafael-neri
Created May 26, 2020 13:28
Show Gist options
  • 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

@helloint
Copy link

helloint commented Jun 7, 2024

thanks!

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