$ git clone -n https://gitee.com/fundawang/git.git /var/lib/mock/dist-an23-build-286859-64835/root/chroot_tmpdir/scmroot/git Cloning into '/var/lib/mock/dist-an23-build-286859-64835/root/chroot_tmpdir/scmroot/git'... $ git fetch origin ac1f1c1e4c7c19fff6a683e9715b8aad75d8dc3c:KOJI_FETCH_HEAD From https://gitee.com/fundawang/git * [new ref] ac1f1c1e4c7c19fff6a683e9715b8aad75d8dc3c -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at ac1f1c1 update