Skip to content

Instantly share code, notes, and snippets.

@crtlib
Last active June 27, 2018 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crtlib/cf5a65eb10d47b90cd7496f7bb3d2b42 to your computer and use it in GitHub Desktop.
Save crtlib/cf5a65eb10d47b90cd7496f7bb3d2b42 to your computer and use it in GitHub Desktop.
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}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment