How to stop toddler from hitting

My son is 2 and its true when they say terrible twos.

He is hitting and kicking his 1 yr old sister. How do i prevent this? What should I do? Latey i do time outs