$ git clone -n git+ssh://git@codeup.openanolis.cn/codeup/anolis-os/scotch /var/lib/mock/dist-an8.4-build-22104-11972/root/chroot_tmpdir/scmroot/scotch Cloning into '/var/lib/mock/dist-an8.4-build-22104-11972/root/chroot_tmpdir/scmroot/scotch'... $ git reset --hard origin/a8 HEAD is now at 8b111c3 update to scotch-6.0.5-3.el8.src.rpm