$ git clone -n https://gitee.com/src-opencloudos-rpms/gcc.git /var/lib/mock/dist-oc8-build-34488-10869/root/chroot_tmpdir/scmroot/gcc Cloning into '/var/lib/mock/dist-oc8-build-34488-10869/root/chroot_tmpdir/scmroot/gcc'... $ git reset --hard a34a878379dd54022919394110d2daadce19dc0d HEAD is now at a34a878 import gcc-8.5.0-16.oc8