$ git clone -n git+ssh://git@codeup.openanolis.cn/codeup/anolis-os/migrationtools.git /var/lib/mock/dist-an7-build-29186-15361/root/chroot_tmpdir/scmroot/migrationtools Cloning into '/var/lib/mock/dist-an7-build-29186-15361/root/chroot_tmpdir/scmroot/migrationtools'... $ git reset --hard origin/a7 HEAD is now at a69eaf7 import migrationtools-47-15.el7.src.rpm