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