Break out any bad bricks using a chisel and hammer. Tap gently over damaged bricks to remove them in chunks; too much force could cause you to damage surrounding bricks.
Scrape away all the mortar from the area surrounding the removed bricks.
Scrape all the joints in the area to be repaired with a carbide-tipped grout saw to a depth of 3/4 inch if you are replacing mortar only, not bricks.
Wash down the wall with a hose until the brick is thoroughly damp to help new mortar adhere. Allow the bricks to sit damp for one day, then mist the brick again before beginning work.
Mix the mortar according to the instructions on the package until it is the consistency of peanut butter.
Apply mortar to the bottom and one side of the replacement brick in the same thickness as the surrounding joint mortar to prevent an uneven look, then slide the replacement brick into the wall.
Scoop a small amount of mortar onto a repointing trowel and fill the remaining joints with it.
Brush the wall with a firm-bristled brush to remove any dry mortar crumbs. Mist the wall daily for three days to keep the mortar from drying out too quickly.