GI doctors explain common causes of green poop and when to call your healthcare provider. It can often be caused by certain foods, medications, or an infection.