How to create a new remote branch with EGit? -


let's have eclipse project uses versioning control egit , connected remote repository git@myrepo.com:git2013. in project, under local branch newstuff, create , change files. now, want push remote branch named newstuff in remote repository. remote repository holds branch master.

how create new remote branch called newstuff?

ps: please not answer command-line git commands; describe how in egit.

you can follow section "configuring upstream push " in order push given branch:

configure push in egit

pushing branch doesn't exist yet on remote repo create on said remote.

you can specify refspec want use, or use push ref specification.

push refspec

that above push local branches.


update december 2013 (egit 3.2): mentioned in robinst's answer (upvoted), have:

push branch / initial push wizard simplifies pushing branch , allows upstream configuration new branches created push operation.
improve ui of upstream configuration when creating branch:

http://wiki.eclipse.org/images/6/6f/egit-3.2-pushbranchwizard.png


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -