I’m not sure how many times I have to say this. Please, please PLEASE! Do not feed or try to pet the deer (or other wildlife)! It was only a couple years ago a visitor was doing the same thing when the deer spooked and an accidentally gored him.
This bothers me every time I find photos like this. Yosemite is not a petting zoo. Please do not try to feed or pet the animals. They are still wild creatures.