Skip to content

Instantly share code, notes, and snippets.

@paramaggarwal
Last active March 23, 2021 03:04
Show Gist options
  • Save paramaggarwal/0528a8f63683398c709e33fa2e350a2b to your computer and use it in GitHub Desktop.
Save paramaggarwal/0528a8f63683398c709e33fa2e350a2b to your computer and use it in GitHub Desktop.
Delete all git tags on remote with particular prefix

Delete all git tags on remote with particular prefix

This will remove all tags with the prefix PREFIX from the remote branch. After that sync your local history with remote.

  • git for-each-ref 'refs/tags/PREFIX*' --format='%(refname:short)' | xargs git push --delete origin
  • git fetch --prune --prune-tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment