Skip to content

Instantly share code, notes, and snippets.

@robseward
Created November 9, 2015 19:13
Show Gist options
  • Save robseward/f3ddab5f2330d48551f1 to your computer and use it in GitHub Desktop.
Save robseward/f3ddab5f2330d48551f1 to your computer and use it in GitHub Desktop.
Batch remove git tags from a list (tags.txt)
#!/bin/bash
while read p; do
git push --delete origin $p
git tag -d $p
done <tags.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment