$ git clone -n https://gitee.com/src-anolis-os/gcc.git /var/lib/mock/dist-an23-build-78017-40551/root/chroot_tmpdir/scmroot/gcc Cloning into '/var/lib/mock/dist-an23-build-78017-40551/root/chroot_tmpdir/scmroot/gcc'... $ git reset --hard origin/a23 HEAD is now at ac77788 upstream gcc12 from trunk