Git获取linux内核源码及分支管理

来源:互联网 发布:淘宝漫步者那家是正品 编辑:程序博客网 时间:2024/06/17 07:46

kernel/git/stable/linux-stable.git

https://www.kernel.org/

获取linux内核源码:

      在kernel的官网上有三种版本,mainline,stable,longterm
      mainline是主线版本,最新的,

      stable是稳定版,

      longterm是长期支持版,

       还有一个是eol,当然就是不再支持了。

       获取内核源码可以通过到官网去下载,也可以通过git的方式进行获取。通过网上下载的方法慢且不方便,每次都得全部下载,通过git下载除了第一次要全部下载外后续的下载都比较快,且获取不同版本的内核也很方便,管理方便,与使用SVN获取代码类似,只需要执行checkout命令即可。下面介绍如何利用git获取源码:

       新建一个文件夹,在该文件夹下 使用git命令git clone URL获取linux内核源码如下:



git clone https://github.com/CyanogenMod/android_kernel_huawei_msm8916.git
git clone https://github.com/LineageOS/android_kernel_huawei_angler.git
https://github.com/DirtyUnicorns/android_kernel_huawei_angler.git
GPL-3.0 license Updated on 9 Dec 2016


https://github.com/DestructoSphere/android_kernel_huawei_msm8909.git
https://github.com/Huawei-msm8937/android_kernel_huawei_msm8937.git
https://github.com/skinzor/android_kernel_huawei_msm8953_2.git

151.101.72.249 

http://global-ssl.fastly.Net 192.30.253.112 http://github.com 
http://blog.csdn.net/menghuanbeike/article/details/74001756




https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/


 
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.githttps://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.githttps://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable.git






原创粉丝点击