$ git clone -n https://gitee.com/src-opencloudos-rpms/perl-Test-Needs.git /var/lib/mock/dist-oc8-build-26101-7117/root/chroot_tmpdir/scmroot/perl-Test-Needs Cloning into '/var/lib/mock/dist-oc8-build-26101-7117/root/chroot_tmpdir/scmroot/perl-Test-Needs'... $ git reset --hard origin/oc8 HEAD is now at 5bdffde import perl-Test-Needs-0.002005-5.oc8