GERD can cause cough sometimes, because the acid irritates your esophagus. Your doctor probably gave you samples of Nexium or some other drug that belongs to that class. You can google for the foods that you should avoid for GERD. Foods may include tomatoes, chocolate, coffee, pizza, high-fat foods.