how to get someone to get past cheating

if you or your partner cheated

how did you get them to forgive you?

or what did they do to get you to forgive them?

And what did you do to work on your relationship