Fences are the only foolproof method to separate your garden from deer. Remember that deer can jump eight feet or higher and can crawl under and between strands of wire that are set too far apart. Cages and netting can be used around individual plants that need protection from hungry deer. Deer repellents can be effective if applied regularly. Repellents range from homemade concoctions of egg and water, human hair, bloodmeal or chunks of smelly soap or expensive commercial repellents.
Rain washes the repellents away.
Plant growth dilutes their effectiveness. A dog might help keep deer away - at least a dog that is large and has the run of your property. But if your dog sleeps indoors at night, forget it. The deer love to feed at night. Deer will try anything once.