当前位置:   article > 正文

git format-patch 打补丁_git format-patch生成全部补丁

git format-patch生成全部补丁

git format-patch 打补丁

git format-patch

$ git format-patch HEAD^               #生成最近的1次commit的patch

$ git format-patch HEAD^^              #生成最近的2次commit的patch

$ git format-patch HEAD^^^              #生成最近的3次commit的patch

$ git format-patch HEAD^^^^             #生成最近的4次commit的patch

$ git format-patch … #生成两个commit间的修改的patch(包含两个commit. 和都是具体的commit号)
$ git format-patch -1 #生成单个commit的patch
$ git format-patch #生成某commit以来的修改patch(不包含该commit)
$ git format-patch --root              #生成从根到r1提交的所有patch

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/487070
推荐阅读
相关标签
  

闽ICP备14008679号