用git管理android patch

本文介绍了使用Git来维护Linux内核分支的方法,包括利用不同的分支进行内核维护、使用cherry-pick命令同步特定提交到本地上游分支、采用stGIT工具管理补丁集以及考虑使用quilt作为另一种补丁管理方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在kernelnewbies@nl.linux.org 问的问题, xiangfu@sharism.cc 给我的如下答复:

1. since the kernel use "git". you can use different branch to maintain the kernel.
  then cherry-pick to your local upstream branch
2. try use "stGIT" to maintain the patches. ( that is what I use everyday)
   for example: you only want file "a.c" goto "001-android.patch"
      $ stg goto 001-android.patch && stg refresh a.c
   then the a.c will merge to "001-android.patch". never touch other "M" files
3. use "quilt" to maintain the patches.

 

我没有试过,因为公司用的是SVN.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值