Skip to content

Instantly share code, notes, and snippets.

@alevgenk
Created December 11, 2018 11:10
Show Gist options
  • Save alevgenk/a40ae707bd7736fba023845aac09d828 to your computer and use it in GitHub Desktop.
Save alevgenk/a40ae707bd7736fba023845aac09d828 to your computer and use it in GitHub Desktop.
#remove tags starting not with 'v' on remote
git tag -l | grep "^[^v]" | xargs -n 1 git push --delete origin
# locally
git tag -l | grep "^[^v]" | xargs git tag -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment