$ git clone -n git+ssh://git@codeup.openanolis.cn/codeup/anolis-os/ixpdimm_sw.git /var/lib/mock/dist-an7-build-28434-15255/root/chroot_tmpdir/scmroot/ixpdimm_sw Cloning into '/var/lib/mock/dist-an7-build-28434-15255/root/chroot_tmpdir/scmroot/ixpdimm_sw'... $ git reset --hard origin/a7 HEAD is now at 3feb0ce import ixpdimm_sw-01.00.00.2111-1.el7.src.rpm