$ git clone -n git+ssh://git@codeup.openanolis.cn/codeup/anolis-os/rhnlib.git /var/lib/mock/dist-an7-build-34017-16169/root/chroot_tmpdir/scmroot/rhnlib Cloning into '/var/lib/mock/dist-an7-build-34017-16169/root/chroot_tmpdir/scmroot/rhnlib'... 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 [...] -- [...]'