$ git clone -n https://gitee.com/src-anolis-nde/nde-image.git /var/lib/mock/dist-an8.9-nde-build-356968-71119/root/chroot_tmpdir/scmroot/nde-image Cloning into '/var/lib/mock/dist-an8.9-nde-build-356968-71119/root/chroot_tmpdir/scmroot/nde-image'... $ git reset --hard origin/a8#origin/a8 fatal: ambiguous argument 'origin/a8#origin/a8': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]'