Sometimes having green poop can indicate that you have a health issue and you should see a doctor.
Infections that can cause green poop are Salmonella and a parasite known as Giardia.
Food poisoning and some certain foods can cause your poop to be green.
Green poop is also caused by food moving too fast through your digestive system resulting in bile Pigment.
If your green poop doesn't clear up in 3 to 4 days you should go see a doctor about it as it could be some bacterial infection that can be treated by a doctor.