Elder Dieter F. Uchtdorf has taught us we can come to Jesus Christ by repenting when we make a mistake:
“Because of the sacrifice of Jesus Christ, we need not fear, for we will live forever, never to taste of death again.23 Because of His infinite Atonement, we can be cleansed of sin and stand pure and holy before the judgment bar. The Savior is the Author of our Salvation. … Those who come unto Christ, repent of their sins, and live in faith will reside forever in peace. Think of the worth of this eternal gift. Surrounded by those we love, we will know the meaning of ultimate joy … because of the life and sacrifice of Jesus Christ, we may hope and be assured that the ending of the book of our lives will exceed our grandest expectations. ‘Eye hath not seen, nor ear heard, neither have entered into the heart of man, the things which God hath prepared for them that love him (1 Corinthians 2:9)’ (Dieter F. Uchtdorf, “The Infinite Power of Hope,” Ensign, Nov 2008, 21–24)”
When we repent, we turn away from our sins. We will not commit them again. Each sin we give up brings us closer to being like Jesus.