Commitment is an essential part of repentance. It is the act of obligating oneself to a course of action and then diligently following through on that decision. When people are genuinely committed, they have real intent, meaning that they fully intend to do what they have committed to do. They make an unwavering and earnest decision to change. They become devoted to Christ and dedicate themselves to His gospel. Keeping their commitment is how they “truly manifest by their works that they have received of the Spirit of Christ unto the remission of their sins” (D&C 20:37). When you ask for commitments as part of your teaching, you are inviting the investigator to repent.
Preach My Gospel, p. 195