The answer to 'how to fix pipe repair' is to first turn off the water supply to the affected pipe. This can usually be done by locating the shut-off valve near the pipe and turning it clockwise to the closed position. Once the water is shut off, you can then assess the extent of the damage and determine the best repair method.
For small leaks or cracks, you may be able to use a pipe repair clamp or epoxy to seal the pipe. For larger damage, you may need to replace a section of the pipe. This involves cutting out the damaged portion and splicing in a new section using couplings or fittings. Be sure to turn the water back on slowly and check for any additional leaks once the repair is complete.