$ git clone -n https://gitee.com/renbo02/centos2anolis.git /var/lib/mock/dist-an7_9-updates-build-185870-60119/root/chroot_tmpdir/scmroot/centos2anolis Cloning into '/var/lib/mock/dist-an7_9-updates-build-185870-60119/root/chroot_tmpdir/scmroot/centos2anolis'... $ git reset --hard 002d468ac2af4ec976b3e193475f229d6201b206 HEAD is now at 002d468 Make the repo status same before and after migration