1. 生成一个补丁
git format-patch --subject-prefix=v2 -1
那么生成的patch文件就会有如下类似的信息:
Subject: [v2] your description about the patch
2. 那么若是同时生成两个补丁呢?
git format-patch --subject-prefix=v2, -1
生成的两个patch文件就会有如下类似信息:
Subject: [v2, 1/2] your description about the patch 1
Subject: [v2, 2/2] your description about the patch 2