git config --global pull.rebase true

Category: Git - Core

git config --global pull.rebase true

Make git pull rebase by default

Changes git pull to rebase local commits onto the fetched branch instead of creating merge commits. The result is a linear history without merge noise. It matches the workflow of teams that always pull with --rebase.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.