$ git clone -n git+ssh://git@codeup.openanolis.cn/codeup/anolis-os/ttmkfdir.git /var/lib/mock/dist-an7-build-30539-15518/root/chroot_tmpdir/scmroot/ttmkfdir Cloning into '/var/lib/mock/dist-an7-build-30539-15518/root/chroot_tmpdir/scmroot/ttmkfdir'... $ git reset --hard origin/a7 HEAD is now at 544e7f8 import ttmkfdir-3.0.9-42.el7.src.rpm