There's not much you can do. Try to recify things if you can; but most of the time you can only learn from your mistakes, try not to make the same one twice and move on with life.
My boss likes to cover up by buying me things or taking me to lunch. That's how I know she
has done something mean or spiteful behind my back. Eventually, I discover what she's done. Others tend to avoid the person they've wronged. That too, is a dead give away.
worry, be embarrassed, feel guilt, wonder if people know they did it, worry some more, wonder why they did it and swear never to do it again, try to make recompences - often without explaining why (because that would mean admitting what you had done)
............ and finally - get over it enough to carry on (even though that little seed of guilt still sits there.
My son-in-law loves that game!
Admit to what you did, explain your thinking, and apologize for what you did. Do what you can to prevent yourself from repeating the behavior or statement. Ask forgiveness and believe that you can be forgiven, if not by the person, by GOD.
Try and learn from it.
Remember their mistake if it really matters and move on. Dwelling is futile.
It helps me ^.^