how to commit