Green garlic after cooking...
Don’t worry. Garlic that turns green is completely safe. The colour is probably the result of a reaction between sulphur compounds and amino acids (building blocks of protein) that are naturally present in garlic. In certain cooking conditions, these compounds (assisted by enzymes) interact to produce new molecules that give a green tint to the garlic. It is odd but harmless.