How do you remove a tag from a remote repository

Git

Git Problem Overview


Is it possible to untag a revision that has been push upstream using git.

This is what has happened:

 git tag 1.1
 git push --tags origin master

Doh! That was meant to be version 1.1beta

Can you rebase and repush upstream. No other member of my team has pulled from origin yet.

Git Solutions


Solution 1 - Git

You can delete a remote tag the same way that you delete a remote branch.

git push origin :1.1

And delete your local tag with:

git tag -d 1.1

Solution 2 - Git

git push --delete origin TAGNAME

Of course, you still have to delete the tag locally by running:

git tag -d TAGNAME

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionserbyView Question on Stackoverflow
Solution 1 - GitAbizernView Answer on Stackoverflow
Solution 2 - GitFlimmView Answer on Stackoverflow