-
-
Save emyasnikov/5de6e73b7b06cd12b4a9c424d808acb6 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
# make sure your tags are up to date | |
git fetch origin | |
# rename all tags | |
git tag -l | while read t; do n="v${t##*-}"; git tag $n $t; git tag -d $t; done | |
# synchronise with the server | |
git push --tags --prune origin refs/tags/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment