Egit: configure rebase as default pull strategy for master branch

In our new project we’ve got 10 repositories, each of which have interdependent Eclipse projects.

I plan to establish a default workflow, where each developer is working on the master branch and uses the commit-pull-push cycle. To reduce commits and get a nice linear history I prefer rebase as standard strategy for pull. This works fine, if branch.master.rebase=true is set.

  • Developing in eclipse without using any git eclipse plugin?
  • Deploy existing repo to heroku with Eclipse
  • Checking out a maven project from a git repository
  • importing a project into eclipse using egit
  • Source Control in Lotus Domino Designer
  • JGit/EGit crashing on branch deletion/creation
  • Unfortunatelly it has to be set manually for all repositories, after they are cloned with EGit. I tried setting branch.autosetuprebase=always, but this affects manually created local branches only, not the master branch after a clone.

    I would like to automatize the initial setting of branch.master.rebase=true to reduce errors and for convenience. Is there a way to do it? Preferably inside of Eclipse/Egit, but other ideas are welcome, too.

  • Git gets stuck on writing objects
  • git: How to split off library from project? filter-branch, subtree?
  • How to compare/diff specific version of master and fork repo in github
  • Updating the Git index failed, LF will be replaced by CRLF?
  • A DRCS (git, bzr, merc) that has “pending changesets” like perforce?
  • Showing commits made directly to a branch, ignoring merges in Git
  • 2 Solutions collect form web for “Egit: configure rebase as default pull strategy for master branch”

    As mentioned by Ozan’s response to their original question, the correct solution is to add


    in .gitconfig

    If you want to make this change in the Eclipse GUI

    1. Open the Git Perspective in Eclipse.
    2. Expand your repository, Branches, Local.
    3. Right-click your branch and click “Configure Branch”.
    4. Check “Rebase”.
    5. Click OK. Do for the rest of the branches pushed to origin.
    Git Baby is a git and github fan, let's start git clone.