There are several methods to keep deer out of your garden:

Fencing: The most effective method for keeping deer out of your garden is to install a tall fence. A fence that is at least 8 feet tall is recommended to keep deer from jumping over. You can also install a deer-proof fence with smaller mesh to prevent deer from reaching through to your plants.

Repellents: There are several types of deer repellents available including sprays, granules, and electronic devices. Some popular options include egg-based repellents, soap-based repellents, and spicy sprays.

Netting:  Another option is to protect individual plants or small garden beds with deer-resistant netting. This will keep deer from munching on your plants while still allowing sunlight and water to reach the plants.

Plant selection:  Consider planting deer-resistant species of plants in your garden. Some plants, such as daffodils and lavender, are naturally unappealing to deer and can help deter them from your garden.

Motion-activated deterrents: Motion-activated deterrents, such as lights or sprinklers, can startle deer and keep them away from your garden.Human presence: Sometimes, simply being present in your garden can be enough to deter deer. If you have a small garden, consider spending time there regularly to keep deer away. It's important to note that no single method is guaranteed to keep deer out of your garden.  You may need to use a combination of these methods to effectively keep deer at bay