✦ Lastly, there are different types of plants that can be planted along with the garden plants to ward off pests. They include catnip that can repel Colorado potato beetles, squash bugs, weevils, and ants. For aphids, fleas, and cabbage pests, anise can be planted in the garden.