$ git clone -n https://gitee.com/src-anolis-dde/ImageMagick.git /var/lib/mock/dist-an8.7-build-162062-58630/root/chroot_tmpdir/scmroot/ImageMagick Cloning into '/var/lib/mock/dist-an8.7-build-162062-58630/root/chroot_tmpdir/scmroot/ImageMagick'... $ git reset --hard origin/a8 HEAD is now at 3429942 init package