Created
January 9, 2015 08:35
-
-
Save Sitebase/d845bb38a162a44c58c7 to your computer and use it in GitHub Desktop.
Batch git tag delete locally and remote
This file contains hidden or 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
# replace "release-" on the following line with the string you want to search for | |
# or remove the "| grep release-" part to remove all local and remote tags | |
for t in `git tag | grep release-` | |
do | |
echo "delete $t" | |
git push origin :$t # Delete remote | |
git tag -d $t # Delete local | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment