To configure your repository to always rebase when pulling;
git config branch.master.rebase true
which turns the relevant section of your '.git/config' from
[branch "master"]
remote = origin
merge = refs/heads/master
to
[branch "master"]
remote = origin
merge = refs/heads/master
rebase = true
In IntelliJ IDEA, when doing up SCM update, it may ask you how to go about the update. Here you can override the setting above to do a regular merge (git fetch
, git merge
or git pull --no-rebase
), a rebase (git fetch
, git rebase
or git pull --rebase
) or rely on the setting above in your config.