Old Mans idea and Witts are both ideas, I´ve used, trying to get the pigs (and Deer) out of the corn.
Trouble is Deer, are way stupider than Pigs. They get used to most anything eventually.
If the same Deer keep coming back, there is usually a reason. Either you have something in your garden that tastes sweet or there is a mineral in the earth they need and is present in the grass. Deer are real partial to Clover, it usually grows well in calcium rich earth.
Dog Urine works well most ways, as does flash or firecrackers. But they get used to most anything eventually. Wrapping the firecrakers in paper and sand, seems to increase the effect, the flash and the sting.
Try a nitrate and iron feritlizer, worth a shot. It will kill most of the Moss and stunt the Clover. Don´t use it around Rhododendrons.
Milorgranite fertilizer works somtimes.
Electric fences are cheap and effective. Just a single strand, 18 inches high or so, when they start jumping that, another strand a yard high and three feet in from the first. You won´t get all off them to leave with the fence, but the majority will go someplace else, unless there is a mineral in your garden they just can't do without.
The best solution I´ve found is to plant, Canola someplace between where they bed and your crops. A hundred pound sack of Canola feed seed deosn´t cost much and Deer really dig it. It grows winter and summer.
I´ve been thinking of spraying a light mix of Borax on foilage, just to see what happens. They say Borax can mess with some plants in high concentrations, it would probably take some trial and error. But heck it´s cheap. Also thought about spraying with a light mix of dishwashing soap, works for killing plant lice, never hurt any plants I know of, it´s gotta taste pretty bad.