<human>: Can you condense the text into a few key points?

As the title says I have greatly hurt my relationship throughout the past 6 months because of anxiety. My anxiety made me an all around needy person who wanted excessive reassurance. This of course irritated my girlfriend greatly and led to some fighting and everything else. I was also extremely irritable and was quick to clash or shut down on my girlfriend. This led to a slow breakdown of our original great relationship. Even when she initially asked me to look into getting better, I ignored her. It took me just over six months before I took the steps to improvement. So our relationship is a bit rocky at this point. This girl is my best friend, someone who I only want to see happy, and someone who I have hurt greatly. 

I essentially did ever single thing wrong. About a month ago I got put on an anxiety medication and it allowed me to control my anxiety quite well. Now that I'm back to being myself I want to show my girlfriend that I love her very much . Unfortunately, my prolonged anxiety state has pushed my girlfriend away quite a bit. At one point shortly before I got treatment we nearly broke up because of my refusal to get help. However, we sat there both crying in each other's arms and decided we couldn't move on without giving it one great final try.  I want to know what I can do to rebuild my relationship.

Background information: My girlfriend and I had been really good friends for years before dating, after a prolonged time of her flirting with me and me being extremely dense, we finally started to date. We've been dating for almost a year and a half now. Before my anxiety we were one of "those" couples that many people set as a standard to live up too. If at all possible I don't want to lose her. We're different types people with me being an extremely affectionate one and her being the more realistic one. However, we are extremely compatible in just about every way. I love this girl very much. We used to talk about having a future together and I don't want to go out without a fight.

Looking forward to hearing some opinions.
<bot>: I [18M] have greatly hurt my relationship with my girlfriend [18F] due to the side effects of anxiety. How can I work to fix my relationship?