$ git clone -n git+ssh://git@codeup.openanolis.cn/codeup/anolis-os/libssh2.git /var/lib/mock/dist-an7-build-32011-15866/root/chroot_tmpdir/scmroot/libssh2 Cloning into '/var/lib/mock/dist-an7-build-32011-15866/root/chroot_tmpdir/scmroot/libssh2'... $ git reset --hard origin/a7 HEAD is now at 083f7e7 import libssh2-1.8.0-3.el7.src.rpm