1 Using ones such as ginger, peppermint, sage, coriander, and chamomile can help to prevent gas. 2  If you don't want to eat a fresh piece of ginger immediately after meals, you can cut down the strength by mixing 1 teaspoon of grated ginger with 1 teaspoon of lime juice.