$ git clone -n https://gitee.com/src-anolis-os/tpm-tools.git /var/lib/mock/dist-an8.7-build-131755-46512/root/chroot_tmpdir/scmroot/tpm-tools Cloning into '/var/lib/mock/dist-an8.7-build-131755-46512/root/chroot_tmpdir/scmroot/tpm-tools'... $ git reset --hard origin/a8 HEAD is now at 8f71576 update to tpm-tools-1.3.9.2-1.el8.src.rpm