write dat.json file on clone with origin remote