What is the secret to having a girlfriend?

Ok so in 2016 I liked this girl and she told me that she wouldn’t date me if I was the last guy on earth and she actually had me give her number to this other guy. I was clean cut worked out, smelled nice this other guy didn’t take care of his appearance, didn’t shower, talked about doing drugs, often make very offensive jokes. In 2020 I started dating this girl but I now understand it wasn’t an actual relationship but just something to pass the time I was the only person actually invested in it when it came to talking she was never interested, when it came to things going on in my life she never cared I was often physically hit and called horrible names. So what is the actual secret

What is the secret to having a girlfriend?
Post Opinion