$ git clone -n https://gitee.com/src-anolis-test/curl.git /var/lib/mock/dist-an8.4-internal-build-51849-23654/root/chroot_tmpdir/scmroot/curl Cloning into '/var/lib/mock/dist-an8.4-internal-build-51849-23654/root/chroot_tmpdir/scmroot/curl'... $ git reset --hard origin/test2 HEAD is now at 952ca3f update