$ git clone -n http://gitee.com/src-anolis-os/annobin.git /var/lib/mock/dist-an23-build-301127-65956/root/chroot_tmpdir/scmroot/annobin Cloning into '/var/lib/mock/dist-an23-build-301127-65956/root/chroot_tmpdir/scmroot/annobin'... warning: redirecting to https://gitee.com/src-anolis-os/annobin.git/ $ git reset --hard origin/23 fatal: ambiguous argument 'origin/23': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]'