I am trying to prevent co-workers to push again a tag in git that was deleted (because it was mistakenly pushed once).
I know how to do that locally and how to push it to remote and how to instruct my co-workers to do a pull the right way to prune the deleted tag from their local repository.
The problem is, it takes just 1 co-worker that does a push without first pruning and then the deleted tag is back and very soon all co-workers have the old tag back.
It is a nightmare to coordinate and ensure everybody does a pull with prune the exact right moment.
I suspect I have to resort to hooks. Any suggestions on how to resolve this in an automated way that do not require everybody to do a pull-with-prune the exact right time?
It has been suggested that this question has a solution, but that question merely discuss how to delete a remote tag. I am not familiar enough with git hooks to be able to solve this so pointers as to how to solve it with git hooks would be much appreciated.