Skip to content

Instantly share code, notes, and snippets.

View crtlib's full-sized avatar

Paul Kofmann crtlib

View GitHub Profile
@crtlib
crtlib / delete_tags.sh
Last active June 27, 2018 13:30
Delete all remote tags
#!/bin/bash
set -e
if [ -z $1 ] ; then
echo "The first param should be the remote's name"
exit 1
fi
git push --delete $1 $(git ls-remote --tags $1 | awk '{print $2}')