$ git clone -n https://gitee.com/src-anolis-nde/nde-image.git /var/lib/mock/dist-an8.9-nde-build-357971-71174/root/chroot_tmpdir/scmroot/nde-image Cloning into '/var/lib/mock/dist-an8.9-nde-build-357971-71174/root/chroot_tmpdir/scmroot/nde-image'... $ git fetch origin a8:KOJI_FETCH_HEAD From https://gitee.com/src-anolis-nde/nde-image * [new branch] a8 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 93b3817 create branch