$ git clone -n https://gitee.com/gcdota930915/openhpi.git /var/lib/mock/dist-an8.7-build-181397-59740/root/chroot_tmpdir/scmroot/openhpi Cloning into '/var/lib/mock/dist-an8.7-build-181397-59740/root/chroot_tmpdir/scmroot/openhpi'... $ git reset --hard origin/a8-poc fatal: ambiguous argument 'origin/a8-poc': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]'