$ git clone -n git+ssh://git@codeup.openanolis.cn/codeup/anolis-os/system-switch-java.git /var/lib/mock/dist-an7-build-30436-15505/root/chroot_tmpdir/scmroot/system-switch-java Cloning into '/var/lib/mock/dist-an7-build-30436-15505/root/chroot_tmpdir/scmroot/system-switch-java'... $ git reset --hard origin/a7 HEAD is now at 347ad42 import system-switch-java-1.1.7.1-0.el7.src.rpm