$ git clone -n https://gitee.com/src-anolis-os/apache-rat.git /var/lib/mock/dist-an7-build-60742-33772/root/chroot_tmpdir/scmroot/apache-rat Cloning into '/var/lib/mock/dist-an7-build-60742-33772/root/chroot_tmpdir/scmroot/apache-rat'... $ git reset --hard origin/a7 HEAD is now at fcbd202 import apache-rat-0.8-13.el7.src.rpm