Quite often when working with an android kernel there would be some nifty commits you’d wish to add to your local repo. So here is the way to do it.
In my case i am working on the Huawei kernel for G300 which involves the msm7627a chipset. So let’s patch it a bit with some commits from Code Aurora Forum (CAF).
Firstly let’s fetch our project locally
git clone https://github.com/ezeteze/android_kernel_huawei_u8815 g300-kernel
Okey now let’s add our remote branch and fetch.
git remote add msm git://codeaurora.org/kernel/msm.git
Cool! Now git branch -a should show your branches and all the remote tracking branches. You are now ready! You can either cherry-pick your commits or if you are brave enough do a full merge, which will probably result in ^n conflicts!
Let’s try out a cherry-pick
akis@localhost:~/kernel/huawei/u8815$ git cherry-pick 4e17bc5b7846448344c262c89ce769f756864b62
[detached HEAD 7ce9f8c] msm: qdsp6v2: Reduce the step size of soft volume and soft pause.
Author: Deepa Madiregama <email@example.com>
2 files changed, 8 insertions(+), 2 deletions(-)
Success! Happy cherry-picking! 🙂