$ git clone -n https://gitee.com/src-opencloudos-rpms/grep.git /var/lib/mock/dist-oc9-build-175082-79868/root/chroot_tmpdir/scmroot/grep Cloning into '/var/lib/mock/dist-oc9-build-175082-79868/root/chroot_tmpdir/scmroot/grep'... $ git fetch origin 2c5f75016404e55104520b60d7744b09c080287c:KOJI_FETCH_HEAD From https://gitee.com/src-opencloudos-rpms/grep * [new ref] 2c5f75016404e55104520b60d7744b09c080287c -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 2c5f750 import grep-3.11-6.tl4