Hazardous natural flows such as snow-slab avalanches, debris flows, pyroclastic flows and lahars are part of a much wider class of dense gravity-driven granular free-surface flows that frequently occur in industrial processes as well as in foodstuffs in our kitchens! This paper investigates the formation of oblique granular shocks, when the oncoming flow is deflected by a wall or obstacle in such a way as to cause a rapid change in the flow height and velocity. The theory for non-accelerative slopes is qualitatively similar to that of gasdynamics. For a given deflection angle there are three possibilities: a weak shock may form close to the wall; a strong shock may extend across the chute; or the shock may detach from the tip. Weak shocks have been observed in both dense granular free-surface flows and granular gases. This paper shows how strong shocks can be triggered in chute experiments by careful control of the downstream boundary conditions. The resulting downstream flow height is much thicker than that of weak shocks and there is a marked decrease in the downstream velocity. Strong shocks therefore dissipate much more energy than weak shocks. An exact solution for the angle at which the flow detaches from the wedge is derived and this is shown to be in excellent agreement with experiment. It therefore provides a very useful criterion for determining whether the flow will detach. In experimental, industrial and geophysical flows the avalanche is usually accelerated, or decelerated, by the net effect of the gravitational acceleration and basal sliding friction as the slope inclination angle changes. The presence of these source terms necessarily leads to gradual changes in the flow height and velocity away from the shocks, and this in turn modifies the local Froude number of the flow. A shock-capturing non-oscillating central method is used to compute numerical solutions to the full problem. This shows that the experiments can be matched very closely when the source terms are included and explains the deviations away from the classical oblique-shock theory. We show that weak shocks bend towards the wedge on accelerative slopes and away from it on decelerative slopes. In both cases the presence of the source terms leads to a gradual increase in the downstream flow thickness along the wedge, which suggests that defensive dams should increase in height further down the slope, contrary to current design criteria but in accordance with field observations of snow-avalanche deposits from a defensive dam in Northwestern Iceland. Movies are available with the online version of the paper.