Set up git pull to rebase instead of merge
suggest changeIf 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
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents