using git to track the Linux kernel
If you follow closely the upstream releases of the Linux kernel, you would benefit by cloning Linus' git tree like that:
- git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
You might also want to use the 2.6.x.y releases that apply various bug fixes for the latest stable 2.6.x version. However, they are kept in a different git tree, that shares many objects with the main one we just cloned. Fortunately, git has the capacity of using objects from a reference tree so we can save time and bandwidth by doing:
- git clone --reference linux-2.6 git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.33.y.git
From here on it's the usual "git tag" to see the tags that can be checked out, getting back to the master branch before running "git pull", etc. Just remember to pull the main tree before the 2.6.x.y one. Have fun configuring and compiling your custom kernel!
Category: Linux



Leave a Comment :
Leave a Comment