How do you gain your partner’s trust back after lying to them?

I lied about something stupid and need to gain their trust back. How do I go about doing so?