Here is a goal: How do you keep insects out of a garden?

Which way makes more sense to accomplish this goal?

Select from:
[1]. Planting onions or garlic are natural insect repellents.
[2]. Picking out the pests by hand will keep your garden pest free.
[1].