Skip to content

Instantly share code, notes, and snippets.

@k06a
Last active March 14, 2016 19:48
Show Gist options
  • Save k06a/3beafa5c2a5072a9e09d to your computer and use it in GitHub Desktop.
Save k06a/3beafa5c2a5072a9e09d to your computer and use it in GitHub Desktop.
git rename bunch tags
# Create and push new tags
for t in $(git tag | grep _); do git tag ${t//_//} $t; done
git push --tags
# Delete original tags
for t in $(git tag | grep _); do git tag -d $t && git push origin :refs/tags/$t; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment