A side stitch, or a sharp pain on the lower edge of the ribcage, can be a huge annoyance for runners. To get rid of one, try gently pushing your fingers into the area where you’re feeling the stitch — that should help relieve some of the pain. Then, to get rid of the side stitch, try altering your breathing pattern. Take a deep breath in as quickly as you can, to force your diaphragm down. Hold your breath for a couple of seconds and then forcibly exhale through pursed lips.
If you get a cramp in the middle of a run, you might want to try changing your breathing/striding pattern. If you always exhale when your right foot strikes the ground, try exhaling with the left foot strike.
If all else fails, you may have to stop and walk briskly for a few seconds while concentrating on deep breathing. Continue running after the stitch goes away.