$ git clone -n https://gitee.com/src-anolis-os/anaconda.git /var/lib/mock/dist-an8_4-build-76211-39335/root/chroot_tmpdir/scmroot/anaconda Cloning into '/var/lib/mock/dist-an8_4-build-76211-39335/root/chroot_tmpdir/scmroot/anaconda'... $ git reset --hard origin/499badc13517d9fc3ea5d2f10a325e95de44cdd9 fatal: ambiguous argument 'origin/499badc13517d9fc3ea5d2f10a325e95de44cdd9': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]'