Skip to content

Instantly share code, notes, and snippets.

@joglomedia
Forked from rafael-neri/script.sh
Created August 11, 2021 16:40
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 joglomedia/380b4ae3d866054fc615c2a2d888c3df to your computer and use it in GitHub Desktop.
Save joglomedia/380b4ae3d866054fc615c2a2d888c3df 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment