$ git clone -n https://gitee.com/src-anolis-os/gtest.git /var/lib/mock/dist-an23.2-build-433961-73078/root/chroot_tmpdir/scmroot/gtest Cloning into '/var/lib/mock/dist-an23.2-build-433961-73078/root/chroot_tmpdir/scmroot/gtest'... $ git fetch origin a23.2:KOJI_FETCH_HEAD From https://gitee.com/src-anolis-os/gtest * [new branch] a23.2 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at aedeecd 1.13.0