Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » How to create a new tag?
How to create a new tag? [message #1075895] Tue, 30 July 2013 09:35 Go to next message
Luís de Sousa is currently offline Luís de SousaFriend
Messages: 214
Registered: July 2009
Senior Member
Hello everyone,

I'd like to create a new tag using EGit. According to the manual there are two ways of doing it:

1. Select Team > Advanced > Tag...
- But I don't have the Advanced sub-menu in the Team menu.

2. Execute Create Tag... on a commit in the History view.
- But I don't have this button/option in the History view.

How do I do it? Thank you.

My setup:

Version: Indigo Release
Build id: 20110615-0604
Eclipse EGit Git Team Provider 1.1.0.201109151100-r
Re: How to create a new tag? [message #1075975 is a reply to message #1075895] Tue, 30 July 2013 12:34 Go to previous messageGo to next message
R Shapiro is currently offline R ShapiroFriend
Messages: 386
Registered: June 2011
Senior Member
Update to a less archaic version of EGit. 1.1 is really old.
Re: How to create a new tag? [message #1076038 is a reply to message #1075975] Tue, 30 July 2013 15:07 Go to previous messageGo to next message
Luís de Sousa is currently offline Luís de SousaFriend
Messages: 214
Registered: July 2009
Senior Member
Thanks for the reply Shapiro. I tried to run the update but I get this error back:

Quote:
Your original request has been modified.
"Eclipse Git Team Provider" is already installed, so an update will be performed instead.
Cannot complete the install because of a conflicting dependency.
Software being installed: Eclipse Git Team Provider 3.0.1.201307141637-r (org.eclipse.egit.feature.group 3.0.1.201307141637-r)
Software currently installed: Eclipse IDE for Java EE Developers 1.4.0.20110615-0550 (epp.package.jee 1.4.0.20110615-0550)
Only one of the following can be installed at once:
Team Support Core 3.6.100.v20120524-0627 (org.eclipse.team.core 3.6.100.v20120524-0627)
Team Support Core 3.5.100.I20100527-0800 (org.eclipse.team.core 3.5.100.I20100527-0800)
Team Support Core 3.5.100.R36x_v20100825-0800 (org.eclipse.team.core 3.5.100.R36x_v20100825-0800)
Team Support Core 3.5.101.R36x_v20110203-1036 (org.eclipse.team.core 3.5.101.R36x_v20110203-1036)
Team Support Core 3.6.0.I20110525-0800 (org.eclipse.team.core 3.6.0.I20110525-0800)
Cannot satisfy dependency:
From: Eclipse IDE for Java EE Developers 1.4.0.20110615-0550 (epp.package.jee 1.4.0.20110615-0550)
To: org.eclipse.epp.package.jee.feature.feature.group [1.4.0.20110615-0550]
Cannot satisfy dependency:
From: Eclipse Git Team Provider 3.0.1.201307141637-r (org.eclipse.egit.feature.group 3.0.1.201307141637-r)
To: org.eclipse.egit.ui [3.0.1.201307141637-r]
Cannot satisfy dependency:
From: Git Team Provider UI 3.0.1.201307141637-r (org.eclipse.egit.ui 3.0.1.201307141637-r)
To: bundle org.eclipse.team.core [3.6.100,4.0.0)
Cannot satisfy dependency:
From: Java EE IDE Feature 1.4.0.20110615-0550 (org.eclipse.epp.package.jee.feature.feature.group 1.4.0.20110615-0550)
To: org.eclipse.platform.feature.group [3.7.0.v20110530-9gF7UHNFFt4cwE-pkZDJ7oz-mj4OSEIlu9SEv0f]
Cannot satisfy dependency:
From: Eclipse Platform 3.7.0.v20110530-9gF7UHNFFt4cwE-pkZDJ7oz-mj4OSEIlu9SEv0f (org.eclipse.platform.feature.group 3.7.0.v20110530-9gF7UHNFFt4cwE-pkZDJ7oz-mj4OSEIlu9SEv0f)
To: org.eclipse.team.core [3.6.0.I20110525-0800]


Which is chinese to me. What else do I need to install before upgrading EGit?
Re: How to create a new tag? [message #1076370 is a reply to message #1076038] Wed, 31 July 2013 09:14 Go to previous messageGo to next message
Luís de Sousa is currently offline Luís de SousaFriend
Messages: 214
Registered: July 2009
Senior Member
Hello again,

I finally understood that to update EGit I needed to upgrade Eclipse itself. My set up is now the following:

Version: Juno Service Release 2
Build id: 20130225-0426
Eclipse EGit 3.0.1.201307141637-r

But I still don't have any of the menu options referred in the manual: Advanced in the context menu or Create Tag... in the History view.

So back to square one: how do I create a git tag in Eclipse?

Thank you.
Re: How to create a new tag? [message #1077891 is a reply to message #1076370] Fri, 02 August 2013 09:22 Go to previous messageGo to next message
Marcus Warm is currently offline Marcus WarmFriend
Messages: 9
Registered: July 2009
Location: Kevelaer, Germany
Junior Member
hi Luís

I would do it this way: Git Repository Perspective -> Git Repositories View
1) check out the local branch that I want to tag
2) right click on Tags -> Create Tag
Enter tag name and tag message. OK.
Finished.

Regards
Marcus Warm


[Eclipse Kepler 20130614-0229, EGit team provider 3.0.0.201306101825-r]
Re: How to create a new tag? [message #1078106 is a reply to message #1077891] Fri, 02 August 2013 14:46 Go to previous messageGo to next message
Luís de Sousa is currently offline Luís de SousaFriend
Messages: 214
Registered: July 2009
Senior Member
Thanks Marcus, that's pretty awkward but works.
Re: How to create a new tag? [message #1080040 is a reply to message #1078106] Mon, 05 August 2013 11:51 Go to previous messageGo to next message
Marcus Warm is currently offline Marcus WarmFriend
Messages: 9
Registered: July 2009
Location: Kevelaer, Germany
Junior Member
Maybe this helps also: http://www.youtube.com/watch?v=q6E9alq-5ls

It's important to push the tag after you created it, so other users can see the tag. Target refname = refs/tags/<tag name>

good luck


[Eclipse Kepler 20130614-0229, EGit team provider 3.0.0.201306101825-r]
Re: How to create a new tag? [message #1849521 is a reply to message #1075895] Sun, 23 January 2022 12:57 Go to previous messageGo to next message
Mark Bratcher is currently offline Mark BratcherFriend
Messages: 6
Registered: September 2021
Junior Member
I'm using Eclipse Version: 2021-09 (4.21.0).

Is there a restriction on how many dots (periods) can be in a tag name? When I tried to create a new tag called v1.3.2, I started typing v1.3 as the tag name, but Eclipse would not allow me to type another '.'. I just happened to have another tag, v1.3.1 which I selected, which put the name "v.1.3.1" into the tag name field, and then I just changed the last 1 to a 2. So, basically, I had to trick Eclipse into accepting v1.3.2.
Re: How to create a new tag? [message #1849525 is a reply to message #1849521] Sun, 23 January 2022 17:35 Go to previous message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 576
Registered: August 2016
Senior Member
No, there is no such restriction. No idea what happened in the case you describe.

There is a restriction that a ref name must not have multiple consecutive periods.
Previous Topic:Git Staging view not updating on adding/removing files to/from the index
Next Topic:Clone a private repo in GitHub.com with JGIT in java
Goto Forum:
  


Current Time: Thu Apr 25 10:42:16 GMT 2024

Powered by FUDForum. Page generated in 0.04429 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top