$ git clone -n https://gitee.com/opencloudos-stream/rsh.git /var/lib/mock/dist-oc9-epol-build-78389-53027/root/chroot_tmpdir/scmroot/rsh Cloning into '/var/lib/mock/dist-oc9-epol-build-78389-53027/root/chroot_tmpdir/scmroot/rsh'... $ git fetch origin master:KOJI_FETCH_HEAD From https://gitee.com/opencloudos-stream/rsh * [new branch] master -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 3d9e711 update