The treatment of a concussion depends on how severe it is.
If you hit your head, talk to a healthcare provider for specific guidance.
Here are some treatment strategies they might recommend:

Spare 10 minutes? Watch this excellent summary video from Dr. Mike called Concussion Management and Return to Learn