$ git clone -n https://gitee.com/opencloudos-stream/gzip.git /var/lib/mock/dist-ocs23-build-120447-8676/root/chroot_tmpdir/scmroot/gzip Cloning into '/var/lib/mock/dist-ocs23-build-120447-8676/root/chroot_tmpdir/scmroot/gzip'... $ git fetch origin dist-ocs23:KOJI_FETCH_HEAD fatal: couldn't find remote ref dist-ocs23 $ git reset --hard dist-ocs23 fatal: ambiguous argument 'dist-ocs23': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]'