Skip to content

Instantly share code, notes, and snippets.

@neduma
Created January 27, 2017 23:38
Show Gist options
  • Save neduma/e25aa5cc62fa1af0689f353b8ed13c22 to your computer and use it in GitHub Desktop.
Save neduma/e25aa5cc62fa1af0689f353b8ed13c22 to your computer and use it in GitHub Desktop.
function git-remove-tag {
if [[ -z $2 ]]; then remote="origin"; else remote=$2; fi
git tag -d $1; git push $remote :refs/tags/$1
}
##
for v in `git tag | grep "\d.\d.\d.\d"`; do git-remove-tag $v bucket; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment