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