Forked from mwhitis/gist:a652fdceda2aeb150038b449d4ed1fcf
Created
July 2, 2019 16:54
-
-
Save feel5ny/0727f34062c1c23b174f5d5772ff3725 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