$ git clone -n https://gitee.com/src-anolis-test/libxmlb.git /var/lib/mock/dist-an8.4-internal-build-56223-28071/root/chroot_tmpdir/scmroot/libxmlb Cloning into '/var/lib/mock/dist-an8.4-internal-build-56223-28071/root/chroot_tmpdir/scmroot/libxmlb'... $ git reset --hard origin/a8.2-temp-0.1.15-1.an8 HEAD is now at b4cb91f import libxmlb-0.1.15-1.an8.src.rpm