This is my third season here in N. CA. and there are, in addition to gophers and deer, moderate numbers of ground squirrels and wild pigs too! And one year, an explosion of grasshoppers! Things I've found helpful: the whole
yard is perimetered by ordinary 4 ft. field
fence with barbed wire, since all neighbors run
cattle. Blocking gaps in this plus the dog has kept the pigs out so far. The dog also helps with the deer until summer when they get more desperate and our irrigated gardens too much of a temptation. I use baited electric wire on top of the perimeter
fence when I can, until fire danger becomes extreme. Then I switch to motion-sensitive sprinklers, which work for another few weeks....so far till after our major tomato harvest. Eventually they just don't care if they get wet....so there went my field of tepary beans.....next summer I will move this closer to the house. So far all my small permanent edible
trees and shrubs are planted in baskets of chickenwire against gophers and rings of fence above ground against deer till they get tall
enough. The taller plants tend to resist grasshoppers better....the one year I had to "bag" all the important trees with fine fabric mesh. The one year the squirrels got bad running off with tomatoes....I trapped about 15-20 that year and they haven't been bad since. I imagine they run in cycles like the hoppers. The gophers are worst with
root crops....they seem to tunnel under and among other vegetables and not kill more than a plant or two. So I made three raised beds with stucco mesh underneath (cheaper than hardware cloth) and edged with roofing tin....one for white potatoes, another for carrots, and the last for sweet potatoes and had an excellent crop of all three! Additionally I'm learning to eat acorns, and
feed them to my
chickens, so I diligently gather the acorns in the yard (probably close to 2k# this year!), and so I'm also removing a major food source and attractant for all these critters....