I like to use an electric fence in, and around the garden.
I string it as low as possible when I plant to keep the crows & turkeys away.
Then, as stuff starts growing, I raise the fence, and eventually put it away from the rows.
Don't just string the fence around the garden, but put a few wires in the middle of the garden so that if the deer get in, they will still get zapped.
And, don't forget to turn it on after you do your gardening.
The nice thing about an electric fence is that you can take it down when you are done.
Solar electric fence chargers are great, easy to use, and you don't need to find a place to plug them in.