What does it mean if he jokingly insults you.

The guy I like likes me too. But he jokingly insults me. I know it's a joke for sure. Because after he says something like that he is always like just kidding you know you are my girl or something like that. And, I 'm just wondering why is he doing that?

The other night we talked for three hours, because something bad happened and he wanted to comfort me. I just don't get why he insults me...is he joking?
What does it mean if he jokingly insults you.
Post Opinion