如需克隆 QEMU 代码及其子模块,使用以下脚本
curl https://mirrors.tuna.tsinghua.edu.cn/git/qemu/qemu.sh | bashcurl https://mirrors.tuna.tsinghua.edu.cn/git/qemu/qemu.sh | bash
如仅需克隆 QEMU 代码,使用
git clone https://mirrors.bfsu.edu.cn/git/qemu.git 若要将 mirror 加入已有代码库,可在已有仓库中运行
git remote add mirror https://mirrors.bfsu.edu.cn/git/qemu.git 或运行
git remote set-url origin https://mirrors.bfsu.edu.cn/git/qemu.git 将默认上游设置为镜像站