$ git clone -n https://gitee.com/src-opencloudos-rpms/gcc /var/lib/mock/dist-oc8-build-118821-69828/root/chroot_tmpdir/scmroot/gcc Cloning into '/var/lib/mock/dist-oc8-build-118821-69828/root/chroot_tmpdir/scmroot/gcc'... $ git fetch origin oc8:KOJI_FETCH_HEAD From https://gitee.com/src-opencloudos-rpms/gcc * [new branch] oc8 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at e1578f1 Version Rollback to 8.5.0-23.1