help: qemu: add script for submodule

This commit is contained in:
ZenithalHourlyRate 2022-07-02 22:25:43 +08:00
parent 5c4007348c
commit 33e3a93aec
No known key found for this signature in database
GPG Key ID: 1189C659F3D04C1C

View File

@ -6,13 +6,19 @@ mirrorid: qemu.git
## QEMU Git 镜像使用帮助
如需克隆 QEMU 代码,使用
如需克隆 QEMU 代码及其子模块,使用以下脚本(实验性功能)
```
curl https://{{ site.hostname }}/git/qemu/qemu.sh | bash
```
如仅需克隆 QEMU 代码,使用
```
git clone https://{{ site.hostname }}/git/qemu.git
```
若要将 tuna mirror 加入已有代码库,可在已有仓库中运行
若要将镜像站加入已有代码库,可在已有仓库中运行
```
git remote add tuna https://{{ site.hostname }}/git/qemu.git
@ -24,4 +30,4 @@ git remote add tuna https://{{ site.hostname }}/git/qemu.git
git remote set-url origin https://{{ site.hostname }}/git/qemu.git
```
将默认上游设置为 TUNA 镜像
将默认上游设置为镜像