Skip to content

Instantly share code, notes, and snippets.

@Aurora12
Created July 5, 2022 10:38
Show Gist options
  • Save Aurora12/ba9f985eff5e8637580a8014252d4891 to your computer and use it in GitHub Desktop.
Save Aurora12/ba9f985eff5e8637580a8014252d4891 to your computer and use it in GitHub Desktop.
Git: delete tags matching pattern
git tag -d $(git tag -l "vX.*")
git push -d origin $(git tag -l "vX.*")

-d is the short for --delete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment