Always be honest, no matter how uncomfortable it may be.
Look at every situation from their pov, like others have pointed out. What seems harmless to you may not feel so harmless if you put yourself in their shoes.
Take time to really stop and think before reacting. You can never take back words spoken and you cannot un-do something you did out of spite.
Forgiveness will not take away the scar you left behind, and there are times when some just cannot deal with the way that scar looks or forget how you made them feel.
Learn how to actively listen, and ask questions for a clearer understanding if you need to.
Talk openly and communicate often, about everything. Even if it's just to let them know you were thinking about them.
Leave the past in the past. Bringing up past relationships and partners always stings. Leave your baggage there too! Everyone deserves a clean slate! If you aren't willing to clean that slate, don't start a new relationship, you aren't ready!
Never tell too much to others outside of your relationship. Be fair to your partner, because most of the time you are only telling one side of the story, which allows others to form inaccurate opinions.