How to create a new remote branch with EGit?

后端 未结 2 1444
花落未央
花落未央 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:29

    In EGit 3.2, there is now a dedicated wizard for this use case:

    1. Select TeamPush Branch... in the context menu

    2. In the wizard, you can change which remote you want to push to and whether pulling on this branch should merge or rebase:

      Push Branch in EGit

    3. The next page will show a confirmation before doing the push, you can then finish the wizard.

    After that, you can simply use Push to Upstream when the branch is checked out to push to the remote branch, or Pull to get the changes from the remote branch.

提交回复
热议问题