-
-
Save rhysburnie/b4ae154754b03b62a894e4ed1137e52f to your computer and use it in GitHub Desktop.
How to mass-rename tags and push them with Git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Rename tags named foo-bar-#.#.# to v#.#.# and push the tag changes | |
git tag -l | while read t; do n="v${t##*-}"; git tag $n $t; git push --tags ; 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