$ git clone -n https://gitee.com/src-anolis-os/pinfo.git /var/lib/mock/dist-an8.7-build-269863-64112/root/chroot_tmpdir/scmroot/pinfo Cloning into '/var/lib/mock/dist-an8.7-build-269863-64112/root/chroot_tmpdir/scmroot/pinfo'... $ git reset --hard origin/a8 HEAD is now at fc24ff1 use extern in header files when declaring global variables