Right when she is hitting or about to hit take her hands and show her gentle. Then get really excited about gentle. If she ever does gentle on her own get really excited.
Say things like, "show mommy gentle," "I like it when you are gentle".
You may even try not addressing the hitting, like don't say things like "we don't hit" etc., just hammer the gentle!