How to remove all git tags in the remote
Removing of all git tags in the remote (the commands should be executed from a local environment) could be achieved in these few simple steps:
- Delete all local tags: git tag -d $(git tag -l)
- Fetch all tags from the remote git fetch
- Delete all tags in the remote git push origin --delete $(git tag -l)
- Repeat deleting all local tags git tag -d $(git tag -l)
After these four steps, all remote and local tags will be deleted.