update tree and commit