Jaime M.
Jaime M.

Reputation: 3823

"git pull --rebase" in Eclipse

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 execute that. How can I do this?

Upvotes: 17

Views: 15760

Answers (3)

Ritesh
Ritesh

Reputation: 7522

New update in Eclipse Mars shows the 'Pull...' option to rebase: Team -> Pull... Popup to select rebase option

Upvotes: 4

robinst
robinst

Reputation: 31437

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.

Upvotes: 49

gzm0
gzm0

Reputation: 14842

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

Upvotes: 18

Related Questions