Don work gloves and pry up the nails holding the roofing material above the old flashing in place. Remove the roofing material. Remove the nails holding the old flashing in place. Set aside the roofing material and discard the old flashing.
Measure the joint where your home's roof and your porch roof meet. This determines how much flashing you need to complete the project. Cut the new flashing to size with tin snips.
Measure the angle of the joint between your house roof and porch roof with an angle finder. Bend the new flashing to the appropriate angle with a metal brake.
Position the new flashing over the joint. Nail down the flashing's edges at 1-inch intervals.
Seal the flashing's seams with roofing cement. Install roofing material over the new flashing.