hooked up with a guy and then found out he has a girlfriend

I hooked up with a guy on my first day of vacation and found out he had a girlfriend the next day. When I confronted him he pretended he didn’t know who I was. I cant get this out of my head, I feel so gross and used. How do I move on?