Hit is used much more often. Basically anytime two objects come in contact with force. Ex: My arrow hit the target. The ball hit him on the head. I got angry at my brother so I hit him.
Knock has two main uses that are more specific. 1: When you hit something in order to make noise. Ex: I was knocking on the door. (Usually to signal to the people inside that you are there.)
2: The phrase "knock over" which means to hit something so hard that you make it fall. Ex: I knocked over the lamp. I knocked over my glass of milk and made mess.
Hope this helps!