I went through this and honestly ignoring DD was the only thing that worked. If we were cuddled on the lounge and she hit me i would pick her up (not saying anything) put her on the floor and walk away. I would sit on another chair and not look at her.

If i talked to her, yelled or told her to be gentle it just made it more fun.

Its a horrible stage, i really hope she grows out of it soon