Ten months is still young. What he needs right now is gentle guidance. Grab his hands (gently) when he reaches for your hair and direct them to 'pet' your hair rather than pull it. (I used to do this while saying in a whisper "gently".) Same for hitting. The idea is to redirect his action to one that is appropriate, so that he learns what is and is not acceptable. (It goes without saying that hurting him back is NOT the way to teach him this.)
If he is doing these things when he is angry or frustrated, still catch his hands before they strike you, but then continue holding them and try to calm him down with rocking or soothing words. Eventually he will get that that is not the appropriate way to express anger, and when he becomes more verbal you can suggest words that he can use to let those aroung him know he is angry without hitting or causing pain.
at 4:52 PM on Jun. 20, 2008