Git · Sharing and syncing
git pull --rebase
Rebases local commits on top of the fetched branch.
Syntax
git pull --rebaseExample
Example
git pull --rebase origin main
More in this group
Learn this in the course
Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.