her = towards the speaker · hin = away from the speaker.
Komm her! – Geh hin!Come here! – Go there!
Woher kommst du? – Wohin gehst du?Where are you from? – Where are you going?
Combined with prepositions: herein / hinein (in), heraus / hinaus (out), herunter / hinunter (down), herauf / hinauf (up). Colloquially shortened to rein, raus, runter, rauf.
Kommen Sie herein! / Komm rein!Come in!
Ich gehe raus.I’m going out.