1、创建补丁(例)
$ git format-patch HEAD^^
$ git format-patch HEAD^^..HEAD
$ git format-patch -2
2、应用补丁(例)
$ git am < 0001-test.patch
$ git am -k < 0001-test.patch
开发笔记
1、创建补丁(例)
$ git format-patch HEAD^^
$ git format-patch HEAD^^..HEAD
$ git format-patch -2
2、应用补丁(例)
$ git am < 0001-test.patch
$ git am -k < 0001-test.patch