Be genuinely sorry for the sins you have committed and ask God to forgive you.
“If we confess our sins, he is faithful and just to forgive us our sins, and to cleanse us from all unrighteousness” (1 John 1:9)

“Except ye repent, ye shall all likewise perish” (Luke 13:3)

“Repent ye therefore, and be converted, that your sins may be blotted out” (Acts 3:19)