$ whoami root $ git clone -n http://8.131.229.236/anolis-os/grafana-pcp /var/lib/mock/dist-el8-build-5550-34/root/chroot_tmpdir/scmroot/grafana-pcp Cloning into '/var/lib/mock/dist-el8-build-5550-34/root/chroot_tmpdir/scmroot/grafana-pcp'... $ git reset --hard origin/a8 HEAD is now at 2f7732c import grafana-pcp-1.0.5-3.el8.src.rpm