“git pull --rebase” in Eclipse

后端 未结 3 1120
自闭症患者
自闭症患者 2021-01-01 19:19

Our version control manager recommends us to use git pull --rebase to pull new changes from upstream branch. I want to use EGit (Eclipse plugin for git) to exec

相关标签:
3条回答
  • 2021-01-01 19:24

    New update in Eclipse Mars shows the 'Pull...' option to rebase:

    0 讨论(0)
  • 2021-01-01 19:36

    You can also change the rebase configuration of a branch from within Eclipse:

    1. Open the Git Repositories view and navigate to the local branch
    2. Open the context menu and select Configure Branch...
    3. In the resulting dialog, select the Rebase checkbox

    EGit also honors the "branch.autosetuprebase" configuration when a new branch is created.

    0 讨论(0)
  • 2021-01-01 19:42

    Use

    git config branch.*branch-name*.rebase true
    

    And pull will automatically rebase.

    You can set it up to configure new branches automatically.

    git config branch.autosetuprebase always
    
    0 讨论(0)
提交回复
热议问题