$ git clone -n git+ssh://git@codeup.openanolis.cn/codeup/anolis-os/kernel.git /var/lib/mock/dist-an8_4-build-25804-14671/root/chroot_tmpdir/scmroot/kernel Cloning into '/var/lib/mock/dist-an8_4-build-25804-14671/root/chroot_tmpdir/scmroot/kernel'... $ git reset --hard origin/a8 HEAD is now at 5e48481 update to kernel-4.18.0-305.7.1.el8_4.src.rpm