Set up git pull to rebase instead of merge

suggest change

If your team rebases instead of merging, you can make git pull rebase on branches created from now on.

To do that for every new branch, add this to ~/.gitconfig or .git/config:

[branch]
autosetuprebase = always

Command line: git config [--global] branch.autosetuprebase always

Alternatively, make every git pull behave as if --rebase was passed:

[pull]
rebase = true

Command line: git config [--global] pull.rebase true

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents