How to remove a remote tag in eGit?

I can remove the local tag very easily in the Git view of the eclipse Repositories.

But if this tag was a remote tag (initially), and I do push - nothing happens. The next time you click this tag will appear again.

Neither RemotePush tags nor RemotePushAdd all tag specs removed this tag from the source. And I tried Add delete ref specification in the same dialog box, but Eclipse will not let me add tag-name or :refs/tags/tag-name .

I know that I can use the command line as described in How to remove a Git tag? but I did not find a way to do this from eGit.

+7
git eclipse egit
source share
1 answer

Playing with TeamRemotePush I found a solution.

I need to enter Remote ref to delete:

 refs/tags/my-tag-name 

and add it to the specification to click. When I finish the dialog, the tag is deleted from the remote.

The same applies if I just click Add All Tags Spec (or something else that creates a new line in the Specifications to push ), click the Mode column to convert Update to Delete and enter the link back at the top in the Destination Ref column.

The funny thing is: the tag is not offered if I open the Remote ref to delete drop-down list, but if I use Ctrl + Space , I can select from the list of tags (and branches) and it generates the correct ref spec.

+12
source share

All Articles