Skip to content

Instantly share code, notes, and snippets.

Avatar

Paul Kofmann crtlib

View GitHub Profile
@crtlib
crtlib / delete_tags.sh
Last active Jun 27, 2018
Delete all remote tags
View delete_tags.sh
#!/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}')