Community
Participate
Working Groups
For committers pulling and pushing directly into a shared repo. we would like to enforce pull --rebase on the tracking branches by default. (With the option for advanced users to merge when they know it's appropriate.)
I believe this is already implemented. If you configure (either per repository or per user or per system) branch.autosetupmerge = always branch.autosetuprebase = always then the dialog shown during branch creation will select the "Rebase" radio button as default for the pull strategy. Unfortunately, this is not documented...
Tried with todays nightly and this works as described by Mathias. This functionality was added [1] beginning of February and is already included in 0.12.1. [1] http://egit.eclipse.org/w/?p=egit.git;a=commit;h=8201f78bed1882428b3f08b24790cb9b8776a4b0
This doesn't work for me during the initial cloning. When I set branch.autosetuprebase = always in my global .gitconfig, I don't get the branch.master.rebase = true set in the cloned repository. This works fine on the command line.
This bug makes it so easy to miss setting branch.master.rebase whenever you clone a new repo. And I don't even see a way to recover if I already pulled and got bogus branches and merges.
This indeed is very inconvient. You have to remember to always set the option after you cloned a repository. In reply to #4: recovering from an accidental merge is not too difficult, as long as this merge has not yet been pushed to a remote repository. Normally 'git reset HEAD^ --hard' should remove the merge commit, after which you can rebase.
Fix proposed at http://egit.eclipse.org/r/4919
I see 1.3 is almost done. Could we get this early in 1.4 then? PW
Cool, I see it's on master now, so I can remove my local fix. Now only Bug 367174 remains for easy global configuration of system wide configurations.
Fixed with 54f23873d60f3b7f70427f5db9ff2a93229a193e
Verified in 2.0.0.201202261814. Thanks!
Bug set to closed.