Commit to update document