Skip to content

Instantly share code, notes, and snippets.

@tanshuai
Last active October 27, 2021 01:44
Show Gist options
  • Save tanshuai/822d4b65462e7c5e15af2e49be3e039f to your computer and use it in GitHub Desktop.
Save tanshuai/822d4b65462e7c5e15af2e49be3e039f to your computer and use it in GitHub Desktop.
Delete Remote Tags on Git by Pattern

For example, delete all remote tags with name prefix builds (build-xxx, buildxxx...):

git fetch --tags --all 
git push -d origin $(git tag -l "build*")
git tag -d $(git tag -l "build*")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment