$ git clone -n https://gitee.com/src-anolis-os/ksh.git /var/lib/mock/dist-an23.3-build-416121-72865/root/chroot_tmpdir/scmroot/ksh Cloning into '/var/lib/mock/dist-an23.3-build-416121-72865/root/chroot_tmpdir/scmroot/ksh'... $ git fetch origin a23:KOJI_FETCH_HEAD From https://gitee.com/src-anolis-os/ksh * [new branch] a23 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at ae3652f update to 3:1.0.10-2