$ git clone -n https://gitee.com/wz002/centos2anolis.git /var/lib/mock/dist-an7_9-updates-build-239762-62779/root/chroot_tmpdir/scmroot/centos2anolis Cloning into '/var/lib/mock/dist-an7_9-updates-build-239762-62779/root/chroot_tmpdir/scmroot/centos2anolis'... $ git reset --hard f330866e40ecbc6f0b4d5d5ced12854958db40f1 HEAD is now at f330866 Add rollback function, we can try to migrate again after rollback