According to your sign and symptom and personal history reason of green colour of stool can be as
you have some infection around your GIT are mainly in the gall bladder
And due to consumption of green food .
You should take consultation for correct diagnosis and right treatment.
Next Steps
You should do some test like CBC with ESR ,
LFT,and
Ultrasonography of gall bladder.
Health Tips
You should follow correct life style
and take sufficient amount of water to hydrate your body.