$ git clone -n https://gitee.com/src-opencloudos-rpms/grep.git /var/lib/mock/dist-oc9-build-64269-16463/root/chroot_tmpdir/scmroot/grep Cloning into '/var/lib/mock/dist-oc9-build-64269-16463/root/chroot_tmpdir/scmroot/grep'... $ git fetch origin oc9:KOJI_FETCH_HEAD From https://gitee.com/src-opencloudos-rpms/grep * [new branch] oc9 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at d6d6ebe import grep-3.11-3.tl4