Created
August 22, 2016 19:50
-
-
Save mwhitis/a652fdceda2aeb150038b449d4ed1fcf to your computer and use it in GitHub Desktop.
Rename all tags in git matching a pattern
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 all of the old tags in the repo that started with EUSS_Prechat_v* to just the numeric part so that they're sorted correctly | |
git tag -l | grep EUSS | while read t; do n="${t/EUSS_Prechat_v/}"; git tag $n $t ; 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