$ git clone -n https://gitee.com/src-anolis-os/libxmlb.git /var/lib/mock/dist-an8-poc-build-102107-45595/root/chroot_tmpdir/scmroot/libxmlb Cloning into '/var/lib/mock/dist-an8-poc-build-102107-45595/root/chroot_tmpdir/scmroot/libxmlb'... $ git reset --hard origin/a8-poc HEAD is now at 41a45f9 import libxmlb-0.1.15-1.el8.src.rpm