$ git clone -n https://gitee.com/src-anolis-os/nano.git /var/lib/mock/dist-an23-build-163462-58654/root/chroot_tmpdir/scmroot/nano Cloning into '/var/lib/mock/dist-an23-build-163462-58654/root/chroot_tmpdir/scmroot/nano'... $ git reset --hard origin/a23 HEAD is now at 6939abb 7.0