用git生成patch文件然后用email的方式提交
1,下载代码
git clone git://git.kernel.org/pub/scm/linux/kernel/git/padovan/bluetooth-next-2.6.git
cd bluetooth-next-2.6
2,修改代码
vi drivers/bluetooth/btusb.c
3,把代码添加到git管理仓库
git add drivers/bluetooth/btusb.c
4,提交修改
git commit -m "Added atheros3012 Chip Firmware download support"
5,查看日志
git log <== to git the previous commit hash code.
6,生成patch
git format-patch -s 1bbe3c8c197a35f79bfddaba099270a2e54ea9c7
please replace the hash code with your repo previous commit.
then you can find the patch under repo directory.
then mail your patch to configuration admin.
7,退回去
git reset --hard 1bbe3c8c197a35f79bfddaba099270a2e54ea9c7
本文介绍如何通过Git创建并提交代码补丁(patch)。具体步骤包括:克隆仓库、修改代码、提交更改、生成补丁文件及通过邮件发送。此流程适用于向项目贡献者提交更改。
2687

被折叠的 条评论
为什么被折叠?



