$ git clone -n https://gitee.com/src-anolis-os/kernel.git /var/lib/mock/dist-an7-updates-build-79289-40617/root/chroot_tmpdir/scmroot/kernel Cloning into '/var/lib/mock/dist-an7-updates-build-79289-40617/root/chroot_tmpdir/scmroot/kernel'... $ git reset --hard origin/580cf7077958fabdc9a8488f50ecc44cdcf55d0e fatal: ambiguous argument 'origin/580cf7077958fabdc9a8488f50ecc44cdcf55d0e': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]'