$ git clone -n https://gitee.com/src-anolis-os/zlib.git /var/lib/mock/dist-an7-updates-build-89520-44210/root/chroot_tmpdir/scmroot/zlib Cloning into '/var/lib/mock/dist-an7-updates-build-89520-44210/root/chroot_tmpdir/scmroot/zlib'... $ git reset --hard origin/a7 HEAD is now at 0d9a202 update to zlib-1.2.7-20.el7_9