Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I delete a remote tag in eGit?

Tags:

git

eclipse

egit

I can remove a local tag very easy in the Git Repositories View of eclipse.

But if that tag was a remote tag (originally) and I make a push - nothing happens. On the next pull that tag will reappear again.

Neither Remote -> Push tags nor Remote -> Push -> Add all tag specs removed that tag from origin. And I've tried Add delete ref specification in the same dialog, but Eclipse won't let me add tag-name or :refs/tags/tag-name.

I know that I can use the command line, as described in "How to delete a git remote tag?", but I didn't find a way to do it from eGit.

like image 931
Tobias Liefke Avatar asked Jul 20 '15 16:07

Tobias Liefke


People also ask

How do I remove a remote tag?

Select and expand the "Tags" tab on the left. Right-Click on the tag you want deleted. Select "Delete YOUR_TAG_NAME" In the verification window, select "Remove Tag From Remotes"

How do you delete tags in Anki?

On mobile devices, swipe left on a tag to reveal an "X" button. On desktops and laptops, right-click on the tag to reveal the "X" button. Press the "X" button to remove the tag.

How do you delete a tag?

Click on the tag in the example page or email. From the pop-up menu that displays after you click the tag, select Clear tag.


1 Answers

Playing with Team -> Remote -> Push I found the solution.

I have to enter in Remote ref to delete:

refs/tags/my-tag-name

and add that to the specifications to push. When I finish the dialog the tag is removed from remote.

The same applies, if I just click Add All Tags Spec (or something else that creates a new row in Specifications to push), click on the Mode column to convert the Update into a Delete and enter the correct ref from above into the Destination Ref column.

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

like image 69
Tobias Liefke Avatar answered Sep 28 '22 04:09

Tobias Liefke