Definition of commits:
(v) :
(transitive) To do (something bad); to perpetrate, as a crime, sin, or fault.
(v) :
(transitive) To give in trust; to put into charge or keeping; to entrust; to consign; used with to or formerly unto.
(v) :
(transitive) To imprison: to forcibly place in a jail.
(v) :
(transitive) To forcibly evaluate and treat in a medical facility, particularly for presumed mental illness.
(v) :
(ambitransitive) To pledge or bind; to compromise, expose, or endanger by some decisive act or preliminary step. (Traditionally used only reflexively but now also without oneself etc.)
(v) :
(transitive, computing, databases) To make a set of changes permanent.