Skip to content

Instantly share code, notes, and snippets.

@leonlaser
Last active April 1, 2019 14:10
Show Gist options
  • Save leonlaser/6c89028a3ebc601815d9bc65428fec45 to your computer and use it in GitHub Desktop.
Save leonlaser/6c89028a3ebc601815d9bc65428fec45 to your computer and use it in GitHub Desktop.
[Delete git tags dont have $tag as an ancestor] #git #tags
comm -23 <(git tag | sort) <(git tag --contains $tag | sort) | xargs git push --delete origin
git fetch --prune origin '+refs/tags/*:refs/tags/*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment