Garlic is known to be a useful all natural organic pest control. It doesn't kill the little buggers, it just keeps them away. It's not harmful to other crops or beneficial insects such as pollinating bees or lady bugs. Garlic is a cost effective and fairly simple garden hack for pest control.
Companion Planting Garlic
Garlic's praises so far as companion planting are well documented [ See: Garlic as a Companion Plant. ] It works well around almost all plants with a few exceptions, most notably asparagus, strawberries, beans and Legumes.
In addition to inter-planting it among other crops a simple and effective garlic spray is easily concocted.
Home Made Garlic Spray
5 cloves of pulverized Garlic
1 drop of eco friendly dish soap for each clove. [Dawn, Ivory or castille soap]
1/2 quart of water