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