$ git clone -n https://gitee.com/src-anolis-os/python2.git /var/lib/mock/dist-an8.7-build-286821-64469/root/chroot_tmpdir/scmroot/python2 Cloning into '/var/lib/mock/dist-an8.7-build-286821-64469/root/chroot_tmpdir/scmroot/python2'... $ git fetch origin a8-sw:KOJI_FETCH_HEAD fatal: couldn't find remote ref a8-sw $ git reset --hard origin/a8-sw fatal: ambiguous argument 'origin/a8-sw': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]'