tag

How to delete a tag in GIT?

You create a tag in GIT, accidentally pushed it into remote repository. But after some time you understood that you don't want it. So, how can you remove a tag in GIT?

You can do this easily by:
git tag -d NAME_OF_YOUR_BAD_TAG
git push origin :refs/tags/NAME_OF_YOUR_BAD_TAG

The first command deletes this tag from your local repository, the second - from remote repository.