text: Best not to pull his ear or even touch him as the no one will be sympathetic to you after that. The best way is by distracting him by asking him a question or making a comment ("where did you get that cool watch" or "hey you have a bee on your back!").  He probably just wants your attention. If he still hits you, tell the kid that he needs to stop because it really hurts. If he doesn't stop, tell the nearest teacher in charge the problem. "Sorry, but this kid keeps hitting me...could you please advise me how to make him stop?"