Buy a rain diverter at a hardware supply store and read any accompanying installation instructions for specific tips.
Cut the diverter down to 1 foot longer than the intended diversion area. This extra space is to avoid unwanted splashing within range of where the diverter will be installed. Make a longer piece if you want to divert the water farther away. Depending on the material it is composed of, you might be able to score the metal with scissors or a utility knife, and bend it until it breaks.
Place the diverter over the intended area so it is centered.
Using a pry bar, loosen the second row of shingles where the diverter will be installed. Use care to avoid breaking the shingles.
Slide the diverter under the loosened shingles so the lip end is sticking up. Adjust the diverter to an appropriate angle so water will flow down as intended. For a diverter that is 6 feet long, a drop of about 1 inch is sufficient.
Lift the shingles carefully so you can reach under and nail the diverter in place with roofing nails. Apply roofing cement to the nail heads to ensure security and press the shingles back down into place.
Test your installation by spraying with a garden hose to see how the water flows.