From cfbbc5b237c8d073947dc89970dfdbe961dd59be Mon Sep 17 00:00:00 2001 From: z4yx Date: Mon, 1 Apr 2019 16:27:21 +0800 Subject: [PATCH] add example of fetch the code of linux kernel branch --- _posts/help/1970-01-01-linux.git.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/_posts/help/1970-01-01-linux.git.md b/_posts/help/1970-01-01-linux.git.md index 1504c60..e2a1ecf 100644 --- a/_posts/help/1970-01-01-linux.git.md +++ b/_posts/help/1970-01-01-linux.git.md @@ -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 +```