$ git clone -n https://gitee.com/src-anolis-os/libxml2.git /var/lib/mock/dist-an8.8-build-299523-65890/root/chroot_tmpdir/scmroot/libxml2 Cloning into '/var/lib/mock/dist-an8.8-build-299523-65890/root/chroot_tmpdir/scmroot/libxml2'... $ git fetch origin libxml2:KOJI_FETCH_HEAD fatal: couldn't find remote ref libxml2 $ git reset --hard origin/libxml2 fatal: ambiguous argument 'origin/libxml2': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]'