git pull --rebase

Category: Git - Core

git pull --rebase

Fetch and rebase local commits on top of upstream changes

Downloads new commits and replays your local commits on top of them. Keeps a cleaner, linear history.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.