mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-26 04:52:44 +00:00
add example of fetch the code of linux kernel branch
This commit is contained in:
parent
9576828713
commit
cfbbc5b237
|
|
@ -6,7 +6,7 @@ mirrorid: linux.git
|
|||
|
||||
## Linux Kernel Git 镜像使用帮助
|
||||
|
||||
如需克隆 linux 代码,使用
|
||||
如需克隆主线 linux 代码,使用
|
||||
|
||||
```
|
||||
git clone https://mirrors.tuna.tsinghua.edu.cn/git/linux.git
|
||||
|
|
@ -26,3 +26,12 @@ git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/linux.git
|
|||
|
||||
将默认上游设置为 TUNA 镜像
|
||||
|
||||
如果需要其它 linux 分支的代码(如树莓派内核代码),可以在 clone 本项目基础上增量下载分支的代码,从而加速下载
|
||||
|
||||
以树莓派为例,具体操作为
|
||||
|
||||
```
|
||||
git clone https://mirrors.tuna.tsinghua.edu.cn/git/linux.git
|
||||
git remote add rasp https://github.com/raspberrypi/linux.git
|
||||
git fetch rasp
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue