How to create a new remote branch with EGit?

后端 未结 2 1414
花落未央
花落未央 2021-02-07 13:55

Let\'s say I have an Eclipse Project which uses versioning control with EGit and is connected with a remote repository git@myrepo.com:git2013. In my project, under

2条回答
  •  失恋的感觉
    2021-02-07 14:10

    You can follow the section "Configuring upstream push " in order to push a given branch:

    Configure push in Egit

    Pushing a branch which doesn't exist yet on a remote repo will create it on said remote.

    You can specify the refspec you want to use, or use Push ref specification.

    Push refspec

    That above would push all local branches.


    Update December 2013 (Egit 3.2): as mentioned in robinst's answer (upvoted), you now have:

    Push Branch / Initial Push wizard simplifies pushing a branch and also allows upstream configuration for new branches created by the push operation.
    Improve UI of upstream configuration when creating a branch:

    http://wiki.eclipse.org/images/6/6f/Egit-3.2-PushBranchWizard.png

提交回复
热议问题