Skip to content

Instantly share code, notes, and snippets.

@vishin-pavel
Created July 3, 2020 21:51
Show Gist options
  • Save vishin-pavel/f27385a2d56d8a4f82052e71d59d8053 to your computer and use it in GitHub Desktop.
Save vishin-pavel/f27385a2d56d8a4f82052e71d59d8053 to your computer and use it in GitHub Desktop.
remove git tags by pattern
#remove from origin
git ls-remote --tags --refs origin "v0.0.5*" | cut -f2 | xargs git push origin --delete
#remove local
git tag -d $(git tag -l "v0.0.5*")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment