Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » How do I create a proper new local and remote branch combination?
How do I create a proper new local and remote branch combination? [message #856165] Wed, 25 April 2012 12:32 Go to next message
Richard Musiol is currently offline Richard MusiolFriend
Messages: 2
Registered: April 2012
Junior Member
I would like to do the following in EGit:
$ git checkout -b newbranch
$ git push -u origin newbranch

This gives me a new local branch, pushes it to the upstream server and creates the right tracking reference. How do I do the same in EGit?
Re: How do I create a proper new local and remote branch combination? [message #856251 is a reply to message #856165] Wed, 25 April 2012 13:59 Go to previous messageGo to next message
Manuel Doninger is currently offline Manuel DoningerFriend
Messages: 119
Registered: October 2010
Senior Member
I would do it this way:
- Create local branch
- Push branch to remote
- Fetch branches from remote
- Delete local branch
- Create new local branch from remote branch
Re: How do I create a proper new local and remote branch combination? [message #856266 is a reply to message #856251] Wed, 25 April 2012 14:13 Go to previous message
Richard Musiol is currently offline Richard MusiolFriend
Messages: 2
Registered: April 2012
Junior Member
I know this way, but I hope you agree that this is not worth to be called "solution" for my question.
Previous Topic:unable to create remote repo
Next Topic:Staging view reindexing repository <repo> seemingly stuck
Goto Forum:
  


Current Time: Fri Apr 19 21:15:36 GMT 2024

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

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

Back to the top