如需克隆 GCC 代码,使用
git clone https://mirrors.tuna.tsinghua.edu.cn/git/gcc.git 若要将 mirror 加入已有代码库,可在已有仓库中运行
git remote add mirror https://mirrors.tuna.tsinghua.edu.cn/git/gcc.git 或运行
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/gcc.git 将默认上游设置为镜像站