Initialize commit of current state.