我一直在尝试使用
git log --no-merges --cherry-pick --right-only master...my-branch
生成是在我的分支提交列表,但不是在主(按照git的日志文件)。 然而,仍然有在列表中来了许多等同提交。 如果我告诉他们,他们的补丁,有来自提交ID除了没有区别。
git show 16cbd0e47406a4f7acbd6dc13f02d74d0b6a7621 >patcha
git show c53c7c32dcd84bfa7096a50b27738458e84536d5 >patchb
diff patcha patchb
1c1
< commit 16cbd0e47406a4f7acbd6dc13f02d74d0b6a7621
---
> commit c53c7c32dcd84bfa7096a50b27738458e84536d5
甚至git patch-id
显示他们为等价的:
git show c53c7c32dcd84bfa7096a50b27738458e84536d5 | git patch-id
2b5504fb9a8622b4326195d88c7a20f29701e62b c53c7c32dcd84bfa7096a50b27738458e84536d5
git show 16cbd0e47406a4f7acbd6dc13f02d74d0b6a7621 | git patch-id
2b5504fb9a8622b4326195d88c7a20f29701e62b 16cbd0e47406a4f7acbd6dc13f02d74d0b6a7621
如何git log --cherry-pick
不挑这些了为重复?