$ git clone -n https://gitee.com/src-anolis-os/net-snmp.git /var/lib/mock/dist-an8-build-63183-34888/root/chroot_tmpdir/scmroot/net-snmp Cloning into '/var/lib/mock/dist-an8-build-63183-34888/root/chroot_tmpdir/scmroot/net-snmp'... $ git reset --hard origin/a8 HEAD is now at d2824a3 update to net-snmp-5.8-22.el8