$ git clone -n https://gitee.com/uestc-cheng/libxml2.git /var/lib/mock/dist-an8.8-build-299287-65890/root/chroot_tmpdir/scmroot/libxml2 Cloning into '/var/lib/mock/dist-an8.8-build-299287-65890/root/chroot_tmpdir/scmroot/libxml2'... $ git reset --hard a43be07904d63a86845df69f4f999364d20f450f HEAD is now at a43be07 update libxml2.spec.