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