$ git clone -n https://gitee.com/src-anolis-os/xkbcomp.git /var/lib/mock/dist-an23-build-134667-49508/root/chroot_tmpdir/scmroot/xkbcomp Cloning into '/var/lib/mock/dist-an23-build-134667-49508/root/chroot_tmpdir/scmroot/xkbcomp'... $ git reset --hard origin/a23 HEAD is now at 473b443 add api