Never had this happened to us

My bf & I are about to be 1year in August & im honestly really happy for that. But today was the ever first time that my bf scared me. So today he got mad for something I didn’t do & well I was trying to calm him but instead he yelled at me & looked at me a certain way that made me feel like I shouldn’t be near him. I then walked away & he followed me still mad & he noticed I was mad & sad at the same time. He then goes on to saying sorry & explaining to me why he reacted the way he did. I just didn’t like for him to yell at me while I tried to help. The same way he acted it that moment is the same reaction i get from my mom all the time. A rejection type of feeling. I hoped to never feel, the way I feel with my mom, with him bc it honestly hurts. Idk if later on he would still keep on doing this even tho he swore never to repeat what happened. I just wanted to talk about my feelings here.