一、当前修改差异文件打patch
git diff > ***.patch
二、某次commit 打patch
git format-patch -1 commitId
三、patch应用
patch p0 < ***.patch
git diff > ***.patch
git format-patch -1 commitId
patch p0 < ***.patch
本文标题:教你快速简单打补丁
本文链接:https://www.haomeiwen.com/subject/senimktx.html
网友评论