$ git clone -n https://gitee.com/src-anolis-os/source-highlight.git /var/lib/mock/dist-an23-build-84283-42342/root/chroot_tmpdir/scmroot/source-highlight Cloning into '/var/lib/mock/dist-an23-build-84283-42342/root/chroot_tmpdir/scmroot/source-highlight'... $ git reset --hard origin/a23 HEAD is now at b634b1e init from upstream