Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » create an new branch
create an new branch [message #1229315] Thu, 09 January 2014 02:19 Go to next message
Antje Janosch is currently offline Antje Janosch
Messages: 2
Registered: January 2014
Junior Member
Hi there,

I need some help to do the correct steps (it might be more git than eGit related):
I have a git project on github. It's some software extension development for another software. It would be good to create a new branch for each version of this software which would then allow me to build my stuff exactly for a certain version and to now mess up with new features from this other software.
Would I have to create a local branch first? If yes, how would I have to configure the "create new branch" dialog. So far, I did only very basic stuff with git (no branching). I'm not sure whether I understand all options (selection of source ref, pull strategy).

Can anybody help?
Re: create an new branch [message #1229674 is a reply to message #1229315] Thu, 09 January 2014 19:34 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias Sohn
Messages: 491
Registered: July 2009
Senior Member
First you should understand how to work with branches, start
reading here
http://wiki.eclipse.org/EGit/User_Guide#Branches
and here
http://git-scm.com/book/en/Git-Branching

You may also consider to go through the EGit tutorial linked from the user guide
http://wiki.eclipse.org/EGit/User_Guide#EclipseCon_2012_Git_Tutorial

You can either first create a new local branch and push that to github in order to create a new remote branch.
Or you can create the new branch on Github https://help.github.com/articles/creating-and-deleting-branches-within-your-repository
and fetch it to your local repository.

The source defines the starting point of your new branch and is used to configure tracking.
This is explained here
http://wiki.eclipse.org/EGit/User_Guide#Pulling_New_Changes_from_Upstream_Branch
http://git-scm.com/book/en/Git-Branching-Remote-Branches#Tracking-Branches
Re: create an new branch [message #1231728 is a reply to message #1229674] Wed, 15 January 2014 04:04 Go to previous message
Antje Janosch is currently offline Antje Janosch
Messages: 2
Registered: January 2014
Junior Member
Thanks a lot!
I will give it a look (especially the tutorial which I was not aware of until now) Smile
Previous Topic:EGit over NAT
Next Topic:EGit not playing nice with command-line Git?
Goto Forum:
  


Current Time: Thu Apr 24 15:01:39 EDT 2014

Powered by FUDForum. Page generated in 0.02236 seconds