$ git clone -n git+ssh://git@codeup.openanolis.cn/codeup/anolis-os/perftest.git /var/lib/mock/dist-an7-build-32563-16037/root/chroot_tmpdir/scmroot/perftest Cloning into '/var/lib/mock/dist-an7-build-32563-16037/root/chroot_tmpdir/scmroot/perftest'... $ git reset --hard origin/a7 HEAD is now at ab6a154 import perftest-4.2-2.el7.src.rpm