$ git clone -n git+ssh://git@codeup.openanolis.cn/codeup/anolis-os/rhnsd.git /var/lib/mock/dist-an7-build-34018-16169/root/chroot_tmpdir/scmroot/rhnsd Cloning into '/var/lib/mock/dist-an7-build-34018-16169/root/chroot_tmpdir/scmroot/rhnsd'... warning: You appear to have cloned an empty repository. $ git reset --hard origin/a7 fatal: ambiguous argument 'origin/a7': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]'