$ git clone -n git+ssh://git@codeup.openanolis.cn/codeup/anolis-os/linuxconsoletools.git /var/lib/mock/dist-an7-build-32197-15935/root/chroot_tmpdir/scmroot/linuxconsoletools Cloning into '/var/lib/mock/dist-an7-build-32197-15935/root/chroot_tmpdir/scmroot/linuxconsoletools'... $ git reset --hard origin/a7 HEAD is now at e314ade import linuxconsoletools-1.4.5-3.el7.src.rpm