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.
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"
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With