$ git clone -n git+ssh://git@codeup.openanolis.cn/codeup/anolis-os/ncompress.git /var/lib/mock/dist-an8.4-build-20434-8912/root/chroot_tmpdir/scmroot/ncompress Cloning into '/var/lib/mock/dist-an8.4-build-20434-8912/root/chroot_tmpdir/scmroot/ncompress'... $ git reset --hard origin/a8 HEAD is now at abc0646 update to ncompress-4.2.4.4-13.el8.src.rpm