方法1
直接下载全部源码,再切换分支
git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
cd linux-stable
git checkout v2.6.36.2
方法2
直接下载指定分支,速度更快
git clone --depth 1 --branch v2.6.36.2 git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
git fetch --unshallow
对于上述地址的网速较慢:
可以使用下面的镜像地址:
http://ftp.sjtu.edu.cn/sites/ftp.kernel.org/pub/linux/kernel/
参考Where to download Linux Kernel source code of a specific version?