[英]Git: insert commits preserving no-ff history
A git rebase
should work, but you might need to add the --preserve-merges
option: git rebase
应该可以,但是您可能需要添加--preserve-merges
选项:
-p
--preserve-merges
Recreate merge commits instead of flattening the history by replaying commits a merge commit introduces.
重新创建合并提交,而不是通过重播合并提交引入的提交来变平历史记录。 Merge conflict resolutions or manual amendments to merge commits are not preserved.
合并冲突解决方案或手动修订以合并提交不会保留。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.