$ git clone -n https://gitee.com/src-anolis-os/popt /var/lib/mock/dist-an8.7-build-138254-51644/root/chroot_tmpdir/scmroot/popt Cloning into '/var/lib/mock/dist-an8.7-build-138254-51644/root/chroot_tmpdir/scmroot/popt'... $ git reset --hard origin/a8 HEAD is now at 30e5b7d spec: add doc sub package