Question: when a guy says he has a girlfriend?
Answer: The fact that he tells you that he has a 'girlfriend' probably literally means that he knows a girl that's just a friend. This guy would probably 'like' to get to know you better, but he may be afraid that you will spurn his affections for you.