Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » How to push a tag to gitgub
How to push a tag to gitgub [message #770098] Fri, 23 December 2011 05:32 Go to next message
jeehaa is currently offline jeehaa
Messages: 1
Registered: December 2011
Junior Member
Hi,
i created a new tag successfully with egit in my local repository.
Now i want to push this tag to github.
How can i do this?
I couldn't find any menuentry in egit to do this.
Thanks
Re: How to push a tag to gitgub [message #771154 is a reply to message #770098] Mon, 26 December 2011 08:36 Go to previous messageGo to next message
R Shapiro is currently offline R Shapiro
Messages: 386
Registered: June 2011
Senior Member
To do this in egit you need to adjust the push settings for the given remote:

Team -> Remote -> Configure Push to Upstream

This will display a dialog called "Configure Push". In the "Ref Mapping" section you can specify what you want to push.

If you want to push all tags, click the "Edit (Advanced)" button. This will display a sub dialog called "Push Ref Specifications". From here you can indicate that you want to push all tags by clicking the "Add All Tags Spec" button.

If you only want to push specific tags, rather than all, you would have to add the refspecs one at a time in the "Configure Push" dialog, by using the "Add..." button at the bottom the "Ref Mapping" section. For the 'Local Branch' just start typing the tag name and egit should offer to fill it in from a menu. It should end up as something like refs/tags/some-tag-here. Then use exactly the same string for the 'Remote Branch'.

icon14.gif  Re: How to push a tag to gitgub [message #1043254 is a reply to message #771154] Wed, 17 April 2013 09:21 Go to previous messageGo to next message
Marco Cuccato is currently offline Marco Cuccato
Messages: 2
Registered: April 2013
Junior Member
You're awesome! Thank you very much!
Re: How to push a tag to gitgub [message #1053798 is a reply to message #1043254] Tue, 07 May 2013 11:54 Go to previous message
Stefan Lay is currently offline Stefan Lay
Messages: 338
Registered: July 2009
Senior Member
You can also push a tag directly from the Git Repositories View.

Expand the Tags node, select a tag and then Push Tag...
Previous Topic:EGit could not detect where Git is installed
Next Topic:Team -> show Annotations is always disabled
Goto Forum:
  


Current Time: Tue Jul 22 07:25:50 EDT 2014

Powered by FUDForum. Page generated in 0.01475 seconds