So confused

How does gentle parenting work for y’all? I have tried and tried with my 2 year old and nothing works. I try to explain to him hitting hurts, throwing things at people hurts, and as I’m doing it he continues to hit. I’ve always thought that he doesn’t understand cause he’s two, not I think he does understand and just doesn’t listen. Any advice ?