$ git clone -n git+ssh://git@codeup.openanolis.cn/codeup/anolis-os/libserializer.git /var/lib/mock/dist-an7-build-40140-20013/root/chroot_tmpdir/scmroot/libserializer Cloning into '/var/lib/mock/dist-an7-build-40140-20013/root/chroot_tmpdir/scmroot/libserializer'... $ git reset --hard origin/a7 HEAD is now at dc63813 import libserializer-1.1.2-10.el7.src.rpm