$ git clone -n https://gitee.com/xzyang-anolis/xorg-x11-server.git /var/lib/mock/dist-an7-extras-build-382063-60069/root/chroot_tmpdir/scmroot/xorg-x11-server Cloning into '/var/lib/mock/dist-an7-extras-build-382063-60069/root/chroot_tmpdir/scmroot/xorg-x11-server'... $ git reset --hard origin/a7-extras fatal: ambiguous argument 'origin/a7-extras': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]'