$ git clone -n https://gitee.com/src-anolis-os/linuxdoc-tools.git /var/lib/mock/dist-an7-build-61212-33878/root/chroot_tmpdir/scmroot/linuxdoc-tools Cloning into '/var/lib/mock/dist-an7-build-61212-33878/root/chroot_tmpdir/scmroot/linuxdoc-tools'... $ git reset --hard origin/a7 HEAD is now at a299c63 import linuxdoc-tools-0.9.68-5.el7.src.rpm