Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我的情况:
A master \ \-- B --- C --- D topic
我想将主题分支合并到master,但只提交C而不在提交D中引入更改。我知道我可以从主题(topic_b)创建新分支,恢复到C并将topic_b合并到master,但我不确定是否当我想将完整主题(D 中的更改)合并到 master 中时,稍后会出现可读历史记录的问题。还有其他更清洁的方法吗?
就像git merge C或一样简单git merge topic^
git merge C
git merge topic^