标签:git patch
http://www.linuxidc.com/Linux/2014-09/106323.htm
http://blog.csdn.net/sunnylgz/article/details/7661920
(1)生成patch
$git format-patch def234 //生成def234之后点提交补丁(不包含def234)
(2)拷贝补丁到目标git目录下
(3)打补丁
先检查patch文件:git apply --stat newpatch.patch
检查能否应用成功:git apply --check newpatch.patch
打补丁:git am --signoff < newpatch.patch ($git am *.patch)
(使用-s或--signoff选项,可以commit信息中加入Signed-off-by信息)
本文出自 “whatever957” 博客,请务必保留此出处http://whatever957.blog.51cto.com/6835003/1713848
标签:git patch
原文地址:http://whatever957.blog.51cto.com/6835003/1713848