Require a linear update and refuse divergent history. Practise git merge --ff-only <branch> in an interactive Git puzzle.
--ff-only tells git merge: fast-forward if you can, otherwise do nothing.
GitGud runs in your browser and needs JavaScript turned on to play.