赞
踩
$ cd /home/jiejie/linux-imx/
$ git status
On branch imx_4.1.15_2.0.0_ga
Your branch is ahead of 'origin/imx_4.1.15_2.0.0_ga' by 5 commits.
(use "git push" to publish your local commits)
Untracked files:
(use "git add <file>..." to include in what will be committed)
arch/arm/configs/imx_v7_jie_defconfig
$ git add .
$ git commit -m "add jiejie imx_v7_jie_defconfig file"
[imx_4.1.15_2.0.0_ga 39b3787cbadf] add jiejie imx_v7_jie_defconfig file
1 file changed, 4293 insertions(+)
create mode 100644 arch/arm/configs/imx_v7_jie_defconfig
git format-patch <r1>..<r2>
如:
git format-patch xxxxx..xxxxx -o patch
git format-patch -1 <r1>
git format-patch <r1>
$ git format-patch 30278abfe0977b1d2f065271ce1ea23c0e2d1b6e
可以看到生成的补丁在当前目录下。
$ cd /home/jiejie/linux-imx/
$ git branch
* imx_4.1.15_2.0.0_ga
$ git log
# commit 30278abfe0977b1d2f065271ce1ea23c0e2d1b6e
# Author: Robby Cai <robby.cai@nxp.com>
# Date: Thu May 4 14:52:24 2017 +0800
$ git status
$ git reset --hard imx_4.1.15_2.0.0_ga
# HEAD is now at 30278ab MLK-14762 ARM: dts: imx6sll-evk: correct gpio pin for lcd power control
$ git am "补丁"
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。