$ git clone -n https://gitee.com/src-anolis-os/sharutils.git /var/lib/mock/dist-an7-build-61840-34082/root/chroot_tmpdir/scmroot/sharutils Cloning into '/var/lib/mock/dist-an7-build-61840-34082/root/chroot_tmpdir/scmroot/sharutils'... $ git reset --hard origin/a7 HEAD is now at 55f8708 import sharutils-4.13.3-8.el7.src.rpm