Git · Sharing and syncing

git pull --ff-only

Pulls only when a fast-forward is possible, avoiding accidental merge commits.

Syntax
git pull --ff-only

Example

Example
git pull --ff-only

More in this group

git fetch --prune git pull --rebase git push --force-with-lease git push --set-upstream git push --tags git push origin --delete git request-pull

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.

Open the course