$ git clone -n https://gitee.com/src-anolis-os/xml-stylebook.git /var/lib/mock/dist-an7-build-61922-34102/root/chroot_tmpdir/scmroot/xml-stylebook Cloning into '/var/lib/mock/dist-an7-build-61922-34102/root/chroot_tmpdir/scmroot/xml-stylebook'... $ git reset --hard origin/a7 HEAD is now at 6063102 import xml-stylebook-1.0-0.14.b3_xalan2.svn313293.el7.src.rpm