$ git clone -n https://gitee.com/src-anolis-test/curl.git /var/lib/mock/dist-an8.4-internal-build-80512-40953/root/chroot_tmpdir/scmroot/curl Cloning into '/var/lib/mock/dist-an8.4-internal-build-80512-40953/root/chroot_tmpdir/scmroot/curl'... $ git reset --hard origin/a8 HEAD is now at 2e02c13 import curl-7.61.1-18.an8_4.1.src.rpm