$ git clone -n https://gitee.com/src-anolis-os/libgit2.git /var/lib/mock/dist-an23-build-320869-67940/root/chroot_tmpdir/scmroot/libgit2 Cloning into '/var/lib/mock/dist-an23-build-320869-67940/root/chroot_tmpdir/scmroot/libgit2'... $ git reset --hard origin/a23 HEAD is now at 9bd4f33 1.6.4