sdk: use prepare target to initialize git snapshot