可能我说的不准确,我把我现在的解决方法说一下
1. 创建新分支(设原分支为 master)git checkout -b dev
2. 进行多次提交git commit * N times
3. 从 master 再创建一个分支git checkout master && git checkout -b release
4. 用 squash 命令
git merge dev --squash
并且编辑一下 comment
5. 用 git format-patch 导出补丁
6. 补丁被认可后,删掉 dev,release 分支
我觉得我的方法很麻烦,请问大家建议我怎么做?
If you want to merge these submissions, you can:
In this way, modifying comments and merging submissions are completed at the same time. Then format-patch normally.