commit someone or something to something
to pledge or assign someone or something to something. The boss committed Ralph to the task. I cannot commit any more money to your project.
commit to someone
to marry or enter into an exclusive relationship with another person. Jane says she loves me, but she's not ready to commit to any one person. If you can't commit to me, then this relationship is over.