Created
October 31, 2013 21:10
-
-
Save shsteimer/7257245 to your computer and use it in GitHub Desktop.
Tip to delete tags by 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
#delete all the remote tags with the pattern your looking for, ie. DEV- | |
git tag | grep <pattern> | xargs -n 1 -i% git push origin :refs/tags/% | |
#delete all your local tags | |
git tag | xargs -n 1 -i% git tag -d % | |
#fetch the remote tags which still remain | |
git fetch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank You @chinmaya-kony & @luwes.
Thank You All for the help🙏🏻