$ git clone -n https://gitee.com/GeassTech/dragonwell11.git /var/lib/mock/dist-an23-riscv64-build-181158-46279/root/chroot_tmpdir/scmroot/dragonwell11 Cloning into '/var/lib/mock/dist-an23-riscv64-build-181158-46279/root/chroot_tmpdir/scmroot/dragonwell11'... $ git reset --hard origin/31f6f649e9d7aca2f2c8645ed285d5c782266203 fatal: ambiguous argument 'origin/31f6f649e9d7aca2f2c8645ed285d5c782266203': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]'