Skip to content

Instantly share code, notes, and snippets.

@amercier
Last active August 29, 2015 13:57
Show Gist options
  • Save amercier/9529211 to your computer and use it in GitHub Desktop.
Save amercier/9529211 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
git pull
git push --tags
git tag | egrep '^[0-9]+(\.[0-9]+)*$' | while read tag; do
echo "========== $tag => v$tag ==========";
git tag v$tag $tag
git tag -d $tag
git push origin :refs/tags/$tag
git push --tags
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment