Answer:
If we say repent it means you need to confess or talk to Hod about your sins.So,that verse says that we need to confess our sins to God and let us be baptized(when we say baptized,we must represent the death or burial of Christ and represent when He was alive again,in water).
Because by baptism is symbolizes that God forgive our sins and it says that we will receive the gift of the holy spirit,holy spirit represents the gift of God,according to Romans 6:23 (For the wages of sin is death but the gift of God is eternal life through Jesus Christ our Lord) in that verse eternal life is the gift of God to us who believe to Him and eternal means No ending life in heaven