Git · Sharing and syncing
git pull --ff-only
Pulls only when a fast-forward is possible, avoiding accidental merge commits.
Syntax
git pull --ff-onlyExample
Example
git pull --ff-only
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.