最佳答案
我有两个分支,它们有很少相似的历史,但是彼此相关。
我希望在 一 git 提交中这两者之间的更改。
文件已被删除和创建之间的补丁,我希望补丁,以反映这一点
也就是说: 下面的东西不会起作用:
git diff branch_a branch_b -- > patchfile
git checkout branch_b
git apply patchfile # deletes and adds are ignored
git commit # we miss the deletes