$ git clone -n https://gitee.com/src-anolis-os/java-17-openjdk.git /var/lib/mock/dist-an8.4-build-84196-42078/root/chroot_tmpdir/scmroot/java-17-openjdk Cloning into '/var/lib/mock/dist-an8.4-build-84196-42078/root/chroot_tmpdir/scmroot/java-17-openjdk'... $ git reset --hard origin/a8-temp-17.0.3.0.6-2.el8_5 HEAD is now at 9dcef40 import java-17-openjdk-17.0.3.0.6-2.el8_5.src.rpm