If you buy big batches of green chilli then the best way to prevent them from rotting too soon is to get rid of the stem. So this is what I do
step 1. Rinse them in water
step 2. Remove the stem
step 3. Refrigerate them in plastic container or ziploc bags.