$ git clone -n git+ssh://git@codeup.openanolis.cn/codeup/anolis-os/perl-Test-Simple.git /var/lib/mock/dist-an7-build-32722-16077/root/chroot_tmpdir/scmroot/perl-Test-Simple Cloning into '/var/lib/mock/dist-an7-build-32722-16077/root/chroot_tmpdir/scmroot/perl-Test-Simple'... $ git reset --hard origin/a7 HEAD is now at 0510eaf import perl-Test-Simple-0.98-243.el7.src.rpm