Did you take back a cheater?

So I found out my boyfriend cheated on me. He felt guilty and stopped but then broke up with me because of the guilt. I love him so much and I know that if he did it once he would do it again, but what if he wants to get back together? Try to mend the relationship. What did you do? Or what would you do?