mirror of
https://github.com/Kxsso/jcutmirror.git
synced 2026-03-29 16:27:01 +08:00
37 lines
758 B
Plaintext
37 lines
758 B
Plaintext
---
|
|
mirrorId: linux.git
|
|
---
|
|
|
|
如需克隆 Linux 代码,使用
|
|
|
|
```bash
|
|
git clone https://mirrors.jcut.edu.cn/git/linux.git
|
|
```
|
|
|
|
若要将 mirror 加入已有代码库,可在已有仓库中运行
|
|
|
|
|
|
```bash
|
|
git remote add mirror https://mirrors.jcut.edu.cn/git/linux.git
|
|
```
|
|
|
|
或运行
|
|
|
|
```bash
|
|
git remote set-url origin https://mirrors.jcut.edu.cn/git/linux.git
|
|
```
|
|
|
|
将默认上游设置为镜像站
|
|
|
|
### 增量下载
|
|
|
|
如果需要其它 linux 分支的代码(如树莓派内核代码),可以在 clone 本项目基础上增量下载分支的代码,从而加速下载
|
|
|
|
以树莓派为例,具体操作为
|
|
|
|
```bash
|
|
git clone https://mirrors.jcut.edu.cn/git/linux.git
|
|
git remote add rasp https://github.com/raspberrypi/linux.git
|
|
git fetch rasp
|
|
```
|