Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"git pull --rebase" in Eclipse

Tags:

git

eclipse

egit

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?

like image 388
Jaime M. Avatar asked Jun 26 '13 15:06

Jaime M.


2 Answers

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.

like image 81
robinst Avatar answered Sep 18 '22 09:09

robinst


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
like image 37
gzm0 Avatar answered Sep 21 '22 09:09

gzm0