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.
我读过这本书关于 git 分支的部分。
我创建了一个名为“实验”的分支。我切换到该分支并在那里进行 2 次提交。因此,如果我可以将实验的后续提交(2 次提交中的第 2 次)合并到主分支?
谢谢你。
您正在寻找的是cherry-pick命令。您还可以考虑其他一些替代方法。查看文章Pick Out Individual Commits on Git Ready。