$ git clone -n https://gitee.com/zhonglingh/systemd.git /var/lib/mock/dist-an8.9-build-379216-71722/root/chroot_tmpdir/scmroot/systemd Cloning into '/var/lib/mock/dist-an8.9-build-379216-71722/root/chroot_tmpdir/scmroot/systemd'... $ git reset --hard origin/c542c9eb6fb466feba5bcd92cef505ac4e7241b5 fatal: ambiguous argument 'origin/c542c9eb6fb466feba5bcd92cef505ac4e7241b5': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]'