Claim to two other answers, but there is an easier way, assuming your branches track remote branches:
git pull --ff-only
Bonus: this will work even if your branches track repo branches other than origin, or track different branches. It is also very short.