clone and commit