Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EGit: how to create a new tag?

Tags:

eclipse

egit

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: Juno Service Release 2
Build id: 20130225-0426
Eclipse EGit 3.0.1.201307141637-r

like image 430
Luís de Sousa Avatar asked Aug 01 '13 12:08

Luís de Sousa


People also ask

How do I get a new tag from GitHub?

In order to find the latest Git tag available on your repository, you have to use the “git describe” command with the “–tags” option. This way, you will be presented with the tag that is associated with the latest commit of your current checked out branch.

How do I create a pull request in EGit?

On GitHub, navigate to the fork's page. You should see a message there indicating that a new branch was created and a button to create a pull request. Click this button. On the next page, you can provide more information and finally confirm the creation of the pull request.

How do you use EGit?

Installing EGit in Eclipse Insert https://download.eclipse.org/egit/updates after Work with: and hit Return. Select Eclipse EGit as a child from Eclipse Team Git Provider. You don't have to install any other plugins. Click Next and confirm your selection in the following window by pressing Next again.


2 Answers

A tip at the Eclipse forum showed how:

  1. Switch to Git Repository Perspective;
  2. Check out the local branch to tag into the Git Repositories View;
  3. In the project tree right click on Tags -> Create Tag
  4. Enter tag name and tag message.

After this the tag must be pushed to the remote repository, but that is something that can be made in the regular coding perspective.

like image 188
Luís de Sousa Avatar answered Oct 19 '22 23:10

Luís de Sousa


I'm using Juno as well and I have the Team->Advanced->Tag menu in the context menu of the project. (Right click on the project connected to the GIT)

After creting the tag V.01 for instance, you need to Push the tag to the repository.

In the Git Repositories view, you have the Tags under you project. In the context menu of your tag you have the Push Tag menu.

Target Ref Name: should be something like refs/tags/V0.1 (without refs/tags/ path you will get an error "funny refname" )

like image 40
user2944582 Avatar answered Oct 20 '22 00:10

user2944582