A guy gave me a head nod?

Everyone is saying different things about the head nod which is a way of greeting. Well I was wondering what it means in general? My crush couldn't talk to me so he gave me a head nod and I was surprised because I thought only guys use that towards each other.. I never greet anyone by nodding my head.
A guy gave me a head nod?
Post Opinion