You can prevent discoloration in guacamole by putting it into a resealable container and topping it with a thick layer of sour cream, followed by plastic wrap or an air-tight lid.
Sour cream is primarily composed of cream and lactic acid that's been fermented. This lactic acid bacteria provides acidity that fights against the oxidation process in guacamole.
The thick coating creates a protective barrier between your guacamole and outside air, and the addition of lactic acid keeps your zesty dip fresh and green.
You can also keep guacamole fresh when preparing it by adding ¼ cup of sour cream to your mashed avocados before adding the cilantro, tomatoes, onions, and lime juice.