Skip to content

Instantly share code, notes, and snippets.

@ko2ic
Last active March 22, 2016 15:08
Show Gist options
  • Save ko2ic/e8e118ebc6e1bc31b61b to your computer and use it in GitHub Desktop.
Save ko2ic/e8e118ebc6e1bc31b61b to your computer and use it in GitHub Desktop.
gitのremoteにあるタグをまとめて削除する ref: http://qiita.com/ko2ic/items/7ab0fd60132be6db83c3
git ls-remote --tags origin | cut -f 2 | grep -v {} | grep '1.0.0..*' | sed "s/refs\/tags\///g" | xargs git push --delete origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment