$ git clone -n https://gitee.com/src-anolis-os/xml-commons-apis12.git /var/lib/mock/dist-an7-build-61919-34102/root/chroot_tmpdir/scmroot/xml-commons-apis12 Cloning into '/var/lib/mock/dist-an7-build-61919-34102/root/chroot_tmpdir/scmroot/xml-commons-apis12'... $ git reset --hard origin/a7 HEAD is now at 7c34874 import xml-commons-apis12-1.2.04-10.el7.src.rpm